mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 23:01:30 +00:00
Removed a usage of Mob::DistNoRootNoZ and used ComparativeDistanceNoZ instead
This commit is contained in:
parent
e728280c58
commit
013518cdb5
@ -1328,7 +1328,7 @@ bool Corpse::Summon(Client* client, bool spell, bool CheckDistance) {
|
|||||||
client->Message(13, "That corpse is locked by a GM.");
|
client->Message(13, "That corpse is locked by a GM.");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (!CheckDistance || (DistNoRootNoZ(*client) <= dist2)) {
|
if (!CheckDistance || (ComparativeDistanceNoZ(m_Position, client->GetPosition()) <= dist2)) {
|
||||||
GMMove(client->GetX(), client->GetY(), client->GetZ());
|
GMMove(client->GetX(), client->GetY(), client->GetZ());
|
||||||
is_corpse_changed = true;
|
is_corpse_changed = true;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user