Skip to content

Commit

Permalink
Bug fix: restarting the game while it's paused causes it to get stuck…
Browse files Browse the repository at this point in the history
… in a paused state after the title screen.
  • Loading branch information
oitofelix committed Feb 26, 2016
1 parent 96ff41e commit 3a4faaa
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions doc/release/latest-news.texi
Expand Up @@ -49,4 +49,6 @@ to prevent the kid from bypassing them.
@item @strong{Bug fix:} while in counter attack and counter defense mode
kid defends even if too far from the guard, when he could otherwise let
the guard strike only thin air.
@item @strong{Bug fix:} restarting the game while it's paused causes it
to get stuck in a paused state after the title screen.
@end itemize
2 changes: 1 addition & 1 deletion src/level.c
Expand Up @@ -238,7 +238,7 @@ process_keys (void)
int prev_room = room_view;

/* clear the keyboard buffer at the first cycle, so any key pressed
on the title don't trigger any action */
on the title doesn't trigger any action */
if (anim_cycle == 0) {
memset (&key, 0, sizeof (key));
button = -1;
Expand Down
1 change: 1 addition & 0 deletions src/mininim.c
Expand Up @@ -1088,6 +1088,7 @@ main (int _argc, char **_argv)
stop_all_samples ();

play_game:
pause_game = false;
total_lives = initial_total_lives;
current_lives = initial_current_lives;

Expand Down

0 comments on commit 3a4faaa

Please sign in to comment.