prevented mapping undo/redo snapshot buttons on main menu screen
authorHolger Schemel <info@artsoft.org>
Wed, 2 Mar 2022 22:47:44 +0000 (23:47 +0100)
committerHolger Schemel <info@artsoft.org>
Wed, 2 Mar 2022 22:47:44 +0000 (23:47 +0100)
src/game.c

index 1c493508a290286f096830ed58ae3de7ec219057..72d27a1ae4469632d7a566fa2ffaeea353bb8bed 100644 (file)
@@ -16437,8 +16437,15 @@ static void MapGameButtonsExt(boolean on_tape)
   int i;
 
   for (i = 0; i < NUM_GAME_BUTTONS; i++)
+  {
+    if ((i == GAME_CTRL_ID_UNDO ||
+        i == GAME_CTRL_ID_REDO) &&
+       game_status != GAME_MODE_PLAYING)
+      continue;
+
     if (!on_tape || gamebutton_info[i].allowed_on_tape)
       MapGadget(game_gadget[i]);
+  }
 
   UnmapGameButtonsAtSamePosition_All();