Skip to content

Commit

Permalink
Honor quit game command in level cutscenes
Browse files Browse the repository at this point in the history
  • Loading branch information
oitofelix committed Jan 12, 2017
1 parent e762950 commit 9234cab
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/level.c
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,7 @@ play_level (struct level *lv)
if (quit_anim == NEXT_LEVEL) goto next_level;
else if (quit_anim == RESTART_LEVEL) goto restart_level;
else if (quit_anim == RESTART_GAME) goto restart_game;
else if (quit_anim == QUIT_GAME) goto quit;
}
goto start;
case RESTART_GAME:
Expand All @@ -322,8 +323,10 @@ play_level (struct level *lv)
if (quit_anim == NEXT_LEVEL) goto next_level;
else if (quit_anim == RESTART_LEVEL) goto restart_level;
else if (quit_anim == RESTART_GAME) goto restart_game;
else if (quit_anim == QUIT_GAME) goto quit;
break;
}
quit:

if (! title_demo && replay_mode == PLAY_REPLAY) {
if (! replay->complete) complete_replay_chain = false;
Expand Down

0 comments on commit 9234cab

Please sign in to comment.