projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c16b35
)
prevented mapping undo/redo snapshot buttons on main menu screen
author
Holger Schemel
<info@artsoft.org>
Wed, 2 Mar 2022 22:47:44 +0000
(23:47 +0100)
committer
Holger Schemel
<info@artsoft.org>
Wed, 2 Mar 2022 22:47:44 +0000
(23:47 +0100)
src/game.c
patch
|
blob
|
history
diff --git
a/src/game.c
b/src/game.c
index 1c493508a290286f096830ed58ae3de7ec219057..72d27a1ae4469632d7a566fa2ffaeea353bb8bed 100644
(file)
--- 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();