Skip to content
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.

Commit

Permalink
Fix to idle actors
Browse files Browse the repository at this point in the history
  • Loading branch information
Causeless committed Dec 29, 2023
1 parent 0c5aaf5 commit fd4fe46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Entities/Actor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1356,7 +1356,7 @@ void Actor::Update()
if (!m_MovePath.empty())
m_MoveTarget = m_MovePath.front();
// No more path, so check if any more waypoints to make a new path to? This doesn't apply if we're following something
else if (m_MovePath.empty() && !m_Waypoints.empty() && !m_pMOMoveTarget)
else if (m_UpdateMovePath || (m_MovePath.empty() && !m_Waypoints.empty() && !m_pMOMoveTarget))
UpdateMovePath();
// Nope, so just conclude that we must have reached the ultimate AI target set and exit the goto mode
else if (!m_pMOMoveTarget)
Expand Down

0 comments on commit fd4fe46

Please sign in to comment.