mirror of
https://github.com/EQEmu/Server.git
synced 2026-01-07 18:43:52 +00:00
Removed a usage of Mob::DistNoRoot and used ComparativeDistance instead
This commit is contained in:
parent
e8144cb3ee
commit
65bd2cf8ac
@ -2296,7 +2296,7 @@ void Client::Handle_OP_AdventureMerchantSell(const EQApplicationPacket *app)
|
||||
return;
|
||||
}
|
||||
|
||||
if (DistNoRoot(*vendor) > USE_NPC_RANGE2)
|
||||
if (ComparativeDistance(m_Position, vendor->GetPosition()) > USE_NPC_RANGE2)
|
||||
{
|
||||
Message(13, "Vendor is out of range.");
|
||||
return;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user