From: Holger Schemel Date: Tue, 12 Dec 2017 21:18:01 +0000 (+0100) Subject: added delaying joystick actions also on the high scores screen X-Git-Tag: 4.1.0.0~35 X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=commitdiff_plain;h=2ea97d888cd50aaec5646c620c24601b823d581b added delaying joystick actions also on the high scores screen --- diff --git a/src/events.c b/src/events.c index c8f7248f..66486773 100644 --- a/src/events.c +++ b/src/events.c @@ -2227,6 +2227,7 @@ void HandleJoystick() case GAME_MODE_LEVELNR: case GAME_MODE_SETUP: case GAME_MODE_INFO: + case GAME_MODE_SCORES: { static unsigned int joystickmove_delay = 0; static unsigned int joystickmove_delay_value = GADGET_FRAME_DELAY; @@ -2259,16 +2260,14 @@ void HandleJoystick() HandleSetupScreen(0,0,dx,dy, newbutton ? MB_MENU_CHOICE : MB_MENU_MARK); else if (game_status == GAME_MODE_INFO) HandleInfoScreen(0,0,dx,dy, newbutton ? MB_MENU_CHOICE : MB_MENU_MARK); + else if (game_status == GAME_MODE_SCORES) + HandleHallOfFame(0,0,dx,dy, newbutton ? MB_MENU_CHOICE : MB_MENU_MARK); joystick_last = joystick; break; } - case GAME_MODE_SCORES: - HandleHallOfFame(0, 0, dx, dy, !newbutton); - break; - case GAME_MODE_PLAYING: if (tape.playing || keyboard) newbutton = ((joy & JOY_BUTTON) != 0);