inverted logic for checking for covering BD screen
authorHolger Schemel <holger.schemel@virtion.de>
Mon, 6 Jan 2025 19:37:45 +0000 (20:37 +0100)
committerHolger Schemel <holger.schemel@virtion.de>
Mon, 6 Jan 2025 19:37:45 +0000 (20:37 +0100)
src/tools.c

index b1ae9055745dc1cec74fb54d22d6fc6a9438c31e..9f14372660196030446045c09a2a937aa28e6d54 100644 (file)
@@ -1001,8 +1001,10 @@ static void SetScreenStates_AfterFadingOut(void)
 
 void CoverScreen(void)
 {
-  if (level.game_engine_type == GAME_ENGINE_TYPE_BD && game_bd.cover_screen)
-    CoverScreen_BD();
+  if (level.game_engine_type != GAME_ENGINE_TYPE_BD || !game_bd.cover_screen)
+    return;
+
+  CoverScreen_BD();
 }
 
 void FadeIn(int fade_mask)