mirror of
https://github.com/EQEmu/Server.git
synced 2026-10-11 00:02:12 +00:00
Removed a usage of Mob::DistNoRootNoZ and used ComparativeDistanceNoZ instead
This commit is contained in:
1 parent
e58a022e25
commit
f33eb9f8f3
1 file changed
+1
-1
+1
-1
@@ -1584,7 +1584,7 @@ Corpse *EntityList::GetCorpseByOwnerWithinRange(Client *client, Mob *center, int
|
||||
auto it = corpse_list.begin();
|
||||
while (it != corpse_list.end()) {
|
||||
if (it->second->IsPlayerCorpse())
|
||||
if (center->DistNoRootNoZ(*it->second) < range &&
|
||||
if (ComparativeDistanceNoZ(center->GetPosition(), it->second->GetPosition()) < range &&
|
||||
strcasecmp(it->second->GetOwnerName(), client->GetName()) == 0)
|
||||
return it->second;
|
||||
++it;
|
||||
|
||||
Reference in new issue
Block a user