mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-17 18:41:29 +00:00
Removed a usage of Mob::DistNoRoot and used ComparativeDistance instead
This commit is contained in:
parent
2b72a50f91
commit
e44d9ce77f
@ -1649,7 +1649,7 @@ void Client::OPGMEndTraining(const EQApplicationPacket *app)
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
//you have to be somewhat close to a trainer to be properly using them
|
//you have to be somewhat close to a trainer to be properly using them
|
||||||
if(DistNoRoot(*pTrainer) > USE_NPC_RANGE2)
|
if(ComparativeDistance(m_Position, pTrainer->GetPosition()) > USE_NPC_RANGE2)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// goodbye message
|
// goodbye message
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user