From facc7fc609a80b0925a0699b39d5e4a048e052d7 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Fri, 28 Dec 2018 15:38:49 +0100 Subject: [PATCH] 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. --- src/tape.c | 4 ++++ 1 file changed, 4 insertions(+) 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) -- 2.34.1