Removed a usage of Mob::DistNoRoot and used ComparativeDistance instead

This commit is contained in:
Arthur Ice 2015-01-17 17:57:36 -08:00
parent 1e2198f5f4
commit eb2eaa4d68

View File

@ -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) {