Core/Movement: 7fff83d6752 followup
remove home position set from creature PauseMovement, and use it when necessary change log level on DelayedDelete (cherry picked from commit cd4775420a4894012616d54467eb3827430245b5)
This commit is contained in:
@@ -144,6 +144,7 @@ void SmartAI::PausePath(uint32 delay, bool forced)
|
||||
_waypointPauseForced = forced;
|
||||
SetRun(mRun);
|
||||
me->PauseMovement();
|
||||
me->SetHomePosition(me->GetPosition());
|
||||
}
|
||||
else
|
||||
_waypointReached = false;
|
||||
@@ -407,6 +408,7 @@ void SmartAI::WaypointReached(uint32 nodeId, uint32 pathId)
|
||||
{
|
||||
_waypointReached = true;
|
||||
me->PauseMovement();
|
||||
me->SetHomePosition(me->GetPosition());
|
||||
}
|
||||
else if (HasEscortState(SMART_ESCORT_ESCORTING) && me->GetMotionMaster()->GetCurrentMovementGeneratorType() == WAYPOINT_MOTION_TYPE)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user