mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-20 13:21:28 +00:00
Removed a usage of Mob::DistNoRoot and used ComparativeDistance instead
This commit is contained in:
parent
1bb4ff2d6a
commit
0088d353d3
@ -5150,7 +5150,7 @@ bool Client::CheckCanHireMerc(Mob* merchant, uint32 template_id) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//check for merchant too far away
|
//check for merchant too far away
|
||||||
if(DistNoRoot(*merchant) > USE_NPC_RANGE2) {
|
if(ComparativeDistance(m_Position, merchant->GetPosition()) > USE_NPC_RANGE2) {
|
||||||
SendMercResponsePackets(18);
|
SendMercResponsePackets(18);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user