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