Skip to content

Commit

Permalink
bug: robot was never resting
Browse files Browse the repository at this point in the history
  • Loading branch information
goblinhack committed Jul 13, 2023
1 parent 3367559 commit 943ab0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/thing_ai.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2319,6 +2319,8 @@ bool Thing::ai_tick(bool recursing)
change_state(MONST_STATE_IDLE, "resting interrupted by being on bad terrain");
return ai_tick(true); /* try again to move now we are no longer resting or asleep */
}

resting();
}
break;
case MONST_STATE_REPACK_INVENTORY :
Expand Down Expand Up @@ -2378,8 +2380,6 @@ bool Thing::ai_tick(bool recursing)
AI_LOG("Something interrupted me while resting");
TRACE_AND_INDENT();

resting();

if (is_player()) {
game->tick_begin("Robot rest interrupted by something");
}
Expand Down

0 comments on commit 943ab0e

Please sign in to comment.