Skip to content

Commit

Permalink
Move must fail if the Actor wants to become a runner but the idle thi…
Browse files Browse the repository at this point in the history
…nk state is neither Runner nor Patrol
  • Loading branch information
smallmodel committed Nov 1, 2023
1 parent e306c41 commit bafe60f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions code/fgame/actor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7324,10 +7324,8 @@ void Actor::Think(void)
}

parm.movefail = false;
if (m_bBecomeRunner) {
if (m_ThinkMap[THINKSTATE_IDLE] != THINK_RUNNER || m_ThinkMap[THINKSTATE_IDLE] != THINK_PATROL) {
parm.movefail = true;
}
if (m_bBecomeRunner && m_ThinkMap[THINKSTATE_IDLE] != THINK_RUNNER && m_ThinkMap[THINKSTATE_IDLE] != THINK_PATROL) {
parm.movefail = true;
}

if (m_bDirtyThinkState) {
Expand Down

0 comments on commit bafe60f

Please sign in to comment.