mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-05 13:32:26 +00:00
Removed a usage of Mob::DistNoRoot and used ComparativeDistance instead
This commit is contained in:
parent
6b3099daac
commit
926cba2cdc
@ -9414,7 +9414,7 @@ void Client::Handle_OP_MercenaryDataRequest(const EQApplicationPacket *app)
|
|||||||
int mercTypeCount = 0;
|
int mercTypeCount = 0;
|
||||||
int mercCount = 0;
|
int mercCount = 0;
|
||||||
|
|
||||||
if (DistNoRoot(*tar) > USE_NPC_RANGE2)
|
if (ComparativeDistance(m_Position, tar->GetPosition()) > USE_NPC_RANGE2)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (tar->GetClass() != MERCERNARY_MASTER) {
|
if (tar->GetClass() != MERCERNARY_MASTER) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user