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

This commit is contained in:
Arthur Ice 2015-01-17 19:09:32 -08:00
parent bcc4c1e4b6
commit 6b979d1c5d

View File

@ -12351,7 +12351,7 @@ void Client::Handle_OP_ShopPlayerSell(const EQApplicationPacket *app)
return;
//you have to be somewhat close to them to be properly using them
if (DistNoRoot(*vendor) > USE_NPC_RANGE2)
if (ComparativeDistance(m_Position, vendor->GetPosition()) > USE_NPC_RANGE2)
return;
uint32 price = 0;