From: Holger Schemel Date: Sun, 18 Feb 2024 13:29:23 +0000 (+0100) Subject: fixed drawing pause button on closed door when restarting paused game X-Git-Tag: 4.3.8.2~1 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=012b5a6611e656aa0922c88f8f52661ba020f8d1;p=rocksndiamonds.git fixed drawing pause button on closed door when restarting paused game --- diff --git a/src/game.c b/src/game.c index d1bf2d7d..872b4e9b 100644 --- a/src/game.c +++ b/src/game.c @@ -16473,6 +16473,10 @@ void ModifyPauseButtons(void) }; int i; + // do not redraw pause button on closed door (may happen when restarting game) + if (!(GetDoorState() & DOOR_OPEN_1)) + return; + for (i = 0; ids[i] > -1; i++) ModifyGadget(game_gadget[ids[i]], GDI_CHECKED, tape.pausing, GDI_END); }