mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-19 20:41:33 +00:00
Removed a usage of Mob::DistNoRootNoZ and used ComparativeDistanceNoZ instead
This commit is contained in:
parent
e58a022e25
commit
f33eb9f8f3
@ -1584,7 +1584,7 @@ Corpse *EntityList::GetCorpseByOwnerWithinRange(Client *client, Mob *center, int
|
|||||||
auto it = corpse_list.begin();
|
auto it = corpse_list.begin();
|
||||||
while (it != corpse_list.end()) {
|
while (it != corpse_list.end()) {
|
||||||
if (it->second->IsPlayerCorpse())
|
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)
|
strcasecmp(it->second->GetOwnerName(), client->GetName()) == 0)
|
||||||
return it->second;
|
return it->second;
|
||||||
++it;
|
++it;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user