mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-18 03:01:29 +00:00
Removed a usage of Mob::DistNoRoot and used ComparativeDistance instead
This commit is contained in:
parent
37e4829ac4
commit
a0d012a6d6
@ -1812,7 +1812,7 @@ void NPC::AI_DoMovement() {
|
|||||||
ClearFeignMemory();
|
ClearFeignMemory();
|
||||||
moved=false;
|
moved=false;
|
||||||
SetMoving(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);
|
SetHeading(m_GuardPoint.m_Heading);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user