mirror of
https://github.com/EQEmu/Server.git
synced 2026-04-11 17:12:25 +00:00
Removed a usage of Mob::DistNoRoot and used ComparativeDistance instead
This commit is contained in:
parent
8efb9e75f8
commit
e54cdad85d
@ -2770,7 +2770,7 @@ void Client::Handle_OP_AltCurrencySell(const EQApplicationPacket *app)
|
|||||||
|
|
||||||
NPC* tar = entity_list.GetNPCByID(sell->merchant_entity_id);
|
NPC* tar = entity_list.GetNPCByID(sell->merchant_entity_id);
|
||||||
if (tar) {
|
if (tar) {
|
||||||
if (DistNoRoot(*tar) > USE_NPC_RANGE2)
|
if (ComparativeDistance(m_Position, tar->GetPosition()) > USE_NPC_RANGE2)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (tar->GetClass() != ALT_CURRENCY_MERCHANT) {
|
if (tar->GetClass() != ALT_CURRENCY_MERCHANT) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user