From 5dc6008a824a182c082c8382939ac5b79cdef3b0 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Wed, 2 Mar 2022 23:47:44 +0100 Subject: [PATCH] prevented mapping undo/redo snapshot buttons on main menu screen --- src/game.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/game.c b/src/game.c index 1c493508..72d27a1a 100644 --- a/src/game.c +++ b/src/game.c @@ -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(); -- 2.34.1