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 852b82d77701274131a566cfab4cf807c55eed3b..6987d5d588d8e2b3efe37d576e66d349f3d6ebb8 100644 (file)
@@ -596,6 +596,10 @@ void TapeStartRecording(int random_seed)
 
   SetDrawDeactivationMask(REDRAW_NONE);
   audio.sound_deactivated = FALSE;
 
   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)
 }
 
 static void TapeStartGameRecording(void)