mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 01:11:29 +00:00
Removed a usage of Mob::DistNoRoot and used ComparativeDistance instead
This commit is contained in:
parent
81f36675b3
commit
c5f38ee700
@ -1701,7 +1701,7 @@ void Merc::AI_Process() {
|
||||
|
||||
if(follow)
|
||||
{
|
||||
float dist = DistNoRoot(*follow);
|
||||
float dist = ComparativeDistance(m_Position, follow->GetPosition());
|
||||
float speed = GetRunspeed();
|
||||
|
||||
if(dist < GetFollowDistance() + 1000)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user