X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Ftape.c;h=43c3c30699807efed1332e53488ab6adbf02ae5a;hb=a0f56f02e122388db4b71520f522ee4e4f002c4a;hp=6cf797198dcf20bf456c1b76c75f5b1e64d52619;hpb=e338cc862574dd965998d636818b8a62e71eccee;p=rocksndiamonds.git diff --git a/src/tape.c b/src/tape.c index 6cf79719..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,10 +1412,6 @@ void RedrawTapeButtons(void) if (tape.show_game_buttons) RedrawGameButtonsOnTape(); - - // RedrawGadget() may have set REDRAW_ALL if buttons are defined off-area - if (redraw_mask & REDRAW_ALL) - redraw_mask = REDRAW_FIELD | REDRAW_DOORS; } void RedrawOrRemapTapeButtons(void)