From: Holger Schemel Date: Fri, 28 Dec 2018 14:38:49 +0000 (+0100) Subject: fixed graphical bug with drawing tape controls over closed door X-Git-Tag: 4.1.2.0~71 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=facc7fc609a80b0925a0699b39d5e4a048e052d7;p=rocksndiamonds.git fixed graphical bug with drawing tape controls over closed door This bug happened in two cases where the game was started with the tape door closed: When starting the game from the "hall of fame" screen, and when starting the game from the level editor. In these cases, tape controls were drawn over the closed tape door right before the door was opened. --- diff --git a/src/tape.c b/src/tape.c index 852b82d7..6987d5d5 100644 --- a/src/tape.c +++ b/src/tape.c @@ -596,6 +596,10 @@ void TapeStartRecording(int random_seed) SetDrawDeactivationMask(REDRAW_NONE); audio.sound_deactivated = FALSE; + + // required here to update video display if tape door is closed + if (GetDoorState() & DOOR_CLOSE_2) + OpenDoor(GetDoorState() | DOOR_NO_DELAY | DOOR_FORCE_REDRAW); } static void TapeStartGameRecording(void)