Removed a usage of Mob::DistNoRoot and used ComparativeDistance instead

This commit is contained in:
Arthur Ice 2015-01-17 18:42:59 -08:00
parent e8144cb3ee
commit 65bd2cf8ac

View File

@ -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;