moved code to close game panel door before starting game
authorHolger Schemel <holger.schemel@virtion.de>
Mon, 6 Jan 2025 14:06:19 +0000 (15:06 +0100)
committerHolger Schemel <holger.schemel@virtion.de>
Mon, 6 Jan 2025 14:06:19 +0000 (15:06 +0100)
src/game.c

index d9291bdf7386aaf68a4377ae995fcb3715dc4355..e110ce5286c3bc6b2067a7a1ba8a79aeb177a897 100644 (file)
@@ -3740,9 +3740,6 @@ void InitGame(void)
   // required here to update video display before fading (FIX THIS)
   DrawMaskedBorder(REDRAW_DOOR_2);
 
-  if (!game.restart_level)
-    CloseDoor(DOOR_CLOSE_1);
-
   if (level.game_engine_type == GAME_ENGINE_TYPE_BD)
   {
     if (!setup.bd_multiple_lives)
@@ -3793,6 +3790,9 @@ void InitGame(void)
       game_bd.cover_screen = FALSE;
   }
 
+  if (!game.restart_level)
+    CloseDoor(DOOR_CLOSE_1);
+
   if (level_editor_test_game)
     FadeSkipNextFadeOut();
   else