Skip to content

Commit

Permalink
Update BaseAI.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
Bohicatv authored Jan 12, 2025
1 parent 5c15731 commit 2ea4982
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Projects/UOContent/Mobiles/AI/BaseAI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2132,7 +2132,11 @@ public virtual MoveResult DoMoveImpl(Direction d, bool badStateOk)

// This makes them always move one step, never any direction changes
// TODO: This is firing off deltas which aren't needed. Look into replacing/removing this
m_Mobile.Direction = d;
if (m_Mobile.Direction != d)
{
m_Mobile.Direction = d;
}

NextMove += delay;

if (Core.TickCount - NextMove > 0)
Expand Down

0 comments on commit 2ea4982

Please sign in to comment.