From bb39d750f3dfc6a931aa21cd3400c80cbb600676 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Sat, 20 Apr 2019 10:55:13 +0200 Subject: [PATCH] fixed handling "Escape" key on high score screen Before, pressing the "Escape" key on the high score screen after solving a level when using the game setting "auto-play next level" started playing the next level. Now, only "positive" input actions (like pressing "Space" or "Enter" or pressing a joystick button) start playing the next level, while a "negative" input action like pressing the "Escape" key always returns to the main menu even with this game setting activated. --- src/screens.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/screens.c b/src/screens.c index 66cc27af..dd7f2b4b 100644 --- a/src/screens.c +++ b/src/screens.c @@ -4705,7 +4705,8 @@ void HandleHallOfFame(int mx, int my, int dx, int dy, int button) FadeSound(SND_BACKGROUND_SCORES); - if (game_status_last_screen == GAME_MODE_PLAYING && + if (button == MB_MENU_CHOICE && + game_status_last_screen == GAME_MODE_PLAYING && setup.auto_play_next_level && setup.increment_levels && level_nr < leveldir_current->last_level && !network_playing) -- 2.34.1