Permalink
Browse files

Bug fix: restarting the game while it's paused causes it to get stuck…

… in a paused state after the title screen.
  • Loading branch information...
oitofelix committed Feb 26, 2016
1 parent 96ff41e commit 3a4faaa64e4ba825ac79e3006ed29bd1b9e043ba
Showing with 4 additions and 1 deletion.
  1. +2 −0 doc/release/latest-news.texi
  2. +1 −1 src/level.c
  3. +1 −0 src/mininim.c
@@ -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
View
@@ -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;
View
@@ -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;

0 comments on commit 3a4faaa

Please sign in to comment.