Removed a usage of Mob::DistNoRoot and used ComparativeDistance instead

This commit is contained in:
Arthur Ice 2015-01-17 18:07:16 -08:00
parent 254ec5997c
commit f43bf5542f

View File

@ -414,7 +414,7 @@ int EntityList::GetHatedCount(Mob *attacker, Mob *exclude)
AggroRange *= AggroRange; AggroRange *= AggroRange;
if (mob->DistNoRoot(*attacker) > AggroRange) if (ComparativeDistance(mob->GetPosition(), attacker->GetPosition()) > AggroRange)
continue; continue;
Count++; Count++;