mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 02:11:30 +00:00
Removed a usage of Mob::DistNoRoot and used ComparativeDistance instead
This commit is contained in:
parent
1e2198f5f4
commit
eb2eaa4d68
@ -88,7 +88,7 @@ void EntityList::DescribeAggro(Client *towho, NPC *from_who, float d, bool verbo
|
||||
if (mob->IsClient()) //also ensures that mob != around
|
||||
continue;
|
||||
|
||||
if (mob->DistNoRoot(*from_who) > d2)
|
||||
if (ComparativeDistance(mob->GetPosition(), from_who->GetPosition()) > d2)
|
||||
continue;
|
||||
|
||||
if (engaged) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user