moved code to cover BD screen before fading out when restarting game
authorHolger Schemel <holger.schemel@virtion.de>
Sun, 5 Jan 2025 15:57:47 +0000 (16:57 +0100)
committerHolger Schemel <holger.schemel@virtion.de>
Sun, 5 Jan 2025 15:57:51 +0000 (16:57 +0100)
src/game.c
src/tape.c

index c4af3361f2b071d8f91ce0e93cf61ccfe35db1f9..407b9c3299bd3940fe25b5b40fc5683b22ab45f0 100644 (file)
@@ -3763,6 +3763,10 @@ void InitGame(void)
   {
     // force fading out global animations displayed during game play
     SetGameStatus(GAME_MODE_PSEUDO_RESTARTING);
+
+    // when using BD engine, cover screen before fading out when restarting game
+    if (level.game_engine_type == GAME_ENGINE_TYPE_BD)
+      game_bd.cover_screen = TRUE;
   }
   else
   {
index 9d729799a9a07524367da37a0fd1467f57a4e698..35140ad4639565682854b11d6b5ecd65d0666db1 100644 (file)
@@ -1414,10 +1414,6 @@ void TapeRestartGame(void)
   if (!checkRestartGame("Restart game?"))
     return;
 
-  // when using BD game engine, cover screen before fading out
-  if (level.game_engine_type == GAME_ENGINE_TYPE_BD)
-    game_bd.cover_screen = TRUE;
-
   StartGameActions(network.enabled, setup.autorecord, level.random_seed);
 }