added delaying joystick actions also on the high scores screen
authorHolger Schemel <info@artsoft.org>
Tue, 12 Dec 2017 21:18:01 +0000 (22:18 +0100)
committerHolger Schemel <info@artsoft.org>
Fri, 23 Mar 2018 22:21:17 +0000 (23:21 +0100)
src/events.c

index c8f7248fb5a6664d22f5453eb5d9ffa8603297cc..66486773cdb05a79ab8f0fc82a2aa05d0f1044b7 100644 (file)
@@ -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);