aboutsummaryrefslogtreecommitdiff
path: root/src/game/ThreatManager.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-02-04 10:33:18 -0600
committermegamage <none@none>2009-02-04 10:33:18 -0600
commit4d008f2043084b72fb9d4a9929ff2793c7bbd8ee (patch)
tree13e4adc5b3dae7f3c1805c95e940d785535375af /src/game/ThreatManager.cpp
parentedbfb386ce87f918da8e11e843d7b5a227e5328d (diff)
Replace tabs with spaces, and fix crlf issues
--HG-- branch : trunk
Diffstat (limited to 'src/game/ThreatManager.cpp')
-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 0e902c05864..3b4491b943e 100644
--- a/src/game/ThreatManager.cpp
+++ b/src/game/ThreatManager.cpp
@@ -267,17 +267,17 @@ HostilReference* ThreatContainer::selectNextVictim(Creature* pAttacker, HostilRe
{
HostilReference* currentRef = NULL;
bool found = false;
-
+
std::list<HostilReference*>::iterator lastRef = iThreatList.end();
lastRef--;
-
+
for(std::list<HostilReference*>::iterator iter = iThreatList.begin(); iter != iThreatList.end() && !found; ++iter)
{
currentRef = (*iter);
Unit* target = currentRef->getTarget();
assert(target); // if the ref has status online the target must be there !
-
+
// some units are preferred in comparison to others
if(iter != lastRef && (target->IsImmunedToDamage(pAttacker->GetMeleeDamageSchoolMask(), false) ||
target->hasUnitState(UNIT_STAT_CONFUSED)