added skipping screen fading when restarting game using BD engine
authorHolger Schemel <holger.schemel@virtion.de>
Sun, 5 Jan 2025 16:05:45 +0000 (17:05 +0100)
committerHolger Schemel <holger.schemel@virtion.de>
Sun, 5 Jan 2025 16:05:50 +0000 (17:05 +0100)
src/game.c

index 52ef60bda301c4d5225697825dbf96f42b6bd353..adb0d905d9c7e12b829b365dbf8fcbf2220c9145 100644 (file)
@@ -3766,7 +3766,16 @@ void InitGame(void)
 
     // 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;
+
+      // skip fading when covering screen, but only if not also skipping BD style uncovering
+      if (!setup.bd_skip_uncovering)
+      {
+        FadeSkipNextFadeOut();
+        FadeSkipNextFadeIn();
+      }
+    }
   }
   else
   {