mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-15 08:21:28 +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
|
if (mob->IsClient()) //also ensures that mob != around
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (mob->DistNoRoot(*from_who) > d2)
|
if (ComparativeDistance(mob->GetPosition(), from_who->GetPosition()) > d2)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (engaged) {
|
if (engaged) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user