mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 01:11:29 +00:00
Removed a usage of Mob::DistNoRoot and used ComparativeDistance instead
This commit is contained in:
parent
254ec5997c
commit
f43bf5542f
@ -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++;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user