Skip to content

Commit

Permalink
z_state_set ignores request if a transition is already in progress.
Browse files Browse the repository at this point in the history
  • Loading branch information
alxm committed May 30, 2018
1 parent 76c700c commit d05e41e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions DefendPluto/state.c
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,10 @@ void z_state_draw(void)

void z_state_set(ZStateId NewState, bool Transition)
{
if(g_state.next != Z_STATE_INVALID) {
return;
}

g_state.next = NewState;

if(Transition) {
Expand Down

0 comments on commit d05e41e

Please sign in to comment.