mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-19 16:58:20 +00:00
Removed a usage of Mob::DistNoRoot and used ComparativeDistance instead
This commit is contained in:
+1
-1
@@ -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++;
|
||||||
|
|||||||
Reference in New Issue
Block a user