From 8a44eff53a9cbbeaa518a7fadfa6389eb38314cb Mon Sep 17 00:00:00 2001 From: megamage Date: Fri, 22 May 2009 03:05:59 -0500 Subject: *Fix a typo that break the whole threat system. --HG-- branch : trunk --- src/game/ThreatManager.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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 -- cgit v1.2.3