mirror of
https://github.com/EQEmu/Server.git
synced 2026-10-09 02:13:55 +00:00
Removed a usage of Mob::DistNoRoot and used ComparativeDistance instead
This commit is contained in:
1 parent
e8144cb3ee
commit
65bd2cf8ac
1 file changed
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user