aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormegamage <none@none>2009-05-22 03:05:59 -0500
committermegamage <none@none>2009-05-22 03:05:59 -0500
commit8a44eff53a9cbbeaa518a7fadfa6389eb38314cb (patch)
tree6336914d7cd29fe0f72c6b40ad7daec62b40414e
parentf557b57652c6ff6e6564f895f021645de36985ae (diff)
*Fix a typo that break the whole threat system.
--HG-- branch : trunk
-rw-r--r--src/game/ThreatManager.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game/ThreatManager.cpp b/src/game/ThreatManager.cpp
index 55fcf51c5b0..33ca708a79f 100644
--- a/src/game/ThreatManager.cpp
+++ b/src/game/ThreatManager.cpp
@@ -320,9 +320,9 @@ HostilReference* ThreatContainer::selectNextVictim(Creature* pAttacker, HostilRe
break;
}
- if ((currentRef->getThreat() > 1.3f * pCurrentVictim->getThreat() ||
- currentRef->getThreat() > 1.1f * pCurrentVictim->getThreat()) &&
- pAttacker->IsWithinMeleeRange(target))
+ if (currentRef->getThreat() > 1.3f * pCurrentVictim->getThreat() ||
+ currentRef->getThreat() > 1.1f * pCurrentVictim->getThreat() &&
+ pAttacker->IsWithinMeleeRange(target))
{ //implement 110% threat rule for targets in melee range
found = true; //and 130% rule for targets in ranged distances
break; //for selecting alive targets