mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-12 20:32:24 +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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (DistNoRoot(*vendor) > USE_NPC_RANGE2)
|
if (ComparativeDistance(m_Position, vendor->GetPosition()) > USE_NPC_RANGE2)
|
||||||
{
|
{
|
||||||
Message(13, "Vendor is out of range.");
|
Message(13, "Vendor is out of range.");
|
||||||
return;
|
return;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user