mirror of
https://github.com/EQEmu/Server.git
synced 2026-10-11 00:02:12 +00:00
Removed a usage of Mob::DistNoRoot and used ComparativeDistance instead
This commit is contained in:
1 parent
37e4829ac4
commit
a0d012a6d6
1 file changed
+1
-1
+1
-1
@@ -1812,7 +1812,7 @@ void NPC::AI_DoMovement() {
|
||||
ClearFeignMemory();
|
||||
moved=false;
|
||||
SetMoving(false);
|
||||
if (GetTarget() == nullptr || DistNoRoot(*GetTarget()) >= 5*5 )
|
||||
if (GetTarget() == nullptr || ComparativeDistance(m_Position, GetTarget()->GetPosition()) >= 5*5 )
|
||||
{
|
||||
SetHeading(m_GuardPoint.m_Heading);
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user