From: Holger Schemel Date: Sat, 20 Apr 2019 08:55:13 +0000 (+0200) Subject: fixed handling "Escape" key on high score screen X-Git-Tag: 4.1.3.0~12 X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=commitdiff_plain;h=bb39d750f3dfc6a931aa21cd3400c80cbb600676;hp=9141e173a82b1105ed0f60c649bfc94dbc5a26b4 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. --- 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)