mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-14 07:21:48 +00:00
Removed a usage of Mob::DistNoRootNoZ and used ComparativeDistanceNoZ instead
This commit is contained in:
parent
013518cdb5
commit
8e112aac03
@ -1343,7 +1343,7 @@ bool Corpse::Summon(Client* client, bool spell, bool CheckDistance) {
|
|||||||
std::list<std::string>::iterator itr;
|
std::list<std::string>::iterator itr;
|
||||||
for(itr = client->consent_list.begin(); itr != client->consent_list.end(); ++itr) {
|
for(itr = client->consent_list.begin(); itr != client->consent_list.end(); ++itr) {
|
||||||
if(strcmp(this->GetOwnerName(), itr->c_str()) == 0) {
|
if(strcmp(this->GetOwnerName(), itr->c_str()) == 0) {
|
||||||
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