From: Holger Schemel Date: Wed, 2 Mar 2022 22:47:44 +0000 (+0100) Subject: prevented mapping undo/redo snapshot buttons on main menu screen X-Git-Tag: 4.3.2.0~98 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=5dc6008a824a182c082c8382939ac5b79cdef3b0;p=rocksndiamonds.git prevented mapping undo/redo snapshot buttons on main menu screen --- 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();