fixed graphical bug with drawing tape controls over closed door
authorHolger Schemel <info@artsoft.org>
Fri, 28 Dec 2018 14:38:49 +0000 (15:38 +0100)
committerHolger Schemel <info@artsoft.org>
Fri, 28 Dec 2018 14:38:49 +0000 (15:38 +0100)
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

index 852b82d..6987d5d 100644 (file)
@@ -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)