X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Ftape.c;h=43c3c30699807efed1332e53488ab6adbf02ae5a;hp=6987d5d588d8e2b3efe37d576e66d349f3d6ebb8;hb=feeeabcbf6696f27ddd68ad56d19db1660a6c4fe;hpb=facc7fc609a80b0925a0699b39d5e4a048e052d7 diff --git a/src/tape.c b/src/tape.c index 6987d5d5..43c3c306 100644 --- a/src/tape.c +++ b/src/tape.c @@ -764,14 +764,17 @@ void TapeTogglePause(boolean toggle_mode) return; } - if (setup.show_snapshot_buttons && - game_status == GAME_MODE_PLAYING && - CheckEngineSnapshotList()) + if (game_status == GAME_MODE_PLAYING) { - if (tape.pausing) - MapUndoRedoButtons(); - else if (!tape.single_step) - UnmapUndoRedoButtons(); + if (setup.show_snapshot_buttons && CheckEngineSnapshotList()) + { + if (tape.pausing) + MapUndoRedoButtons(); + else if (!tape.single_step) + UnmapUndoRedoButtons(); + } + + ModifyPauseButtons(); } } @@ -1409,9 +1412,6 @@ void RedrawTapeButtons(void) if (tape.show_game_buttons) RedrawGameButtonsOnTape(); - - // RedrawGadget() may have set REDRAW_ALL if buttons are defined off-area - redraw_mask &= ~REDRAW_ALL; } void RedrawOrRemapTapeButtons(void)