From 65bd2cf8aca6c87bc936c674993cbd4030577494 Mon Sep 17 00:00:00 2001 From: Arthur Ice Date: Sat, 17 Jan 2015 18:42:59 -0800 Subject: [PATCH] Removed a usage of Mob::DistNoRoot and used ComparativeDistance instead --- zone/client_packet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zone/client_packet.cpp b/zone/client_packet.cpp index b2e8ec43c..be8defcfc 100644 --- a/zone/client_packet.cpp +++ b/zone/client_packet.cpp @@ -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;