added fading sounds after covering BD screen when not playing anymore
authorHolger Schemel <holger.schemel@virtion.de>
Tue, 14 Jan 2025 23:19:27 +0000 (00:19 +0100)
committerHolger Schemel <holger.schemel@virtion.de>
Tue, 14 Jan 2025 23:19:28 +0000 (00:19 +0100)
src/tools.c

index 86d7bc56339678a8eafea3541ddb3dfa71981963..20784a476f8de2bf50d49f7fce25525a0724e29d 100644 (file)
@@ -1015,6 +1015,11 @@ void CoverScreen(void)
   }
 
   CoverScreen_BD();
+
+  // if not playing or restarting game, stop sound loop played while covering the screen
+  if (game_status != GAME_MODE_PLAYING &&
+      game_status != GAME_MODE_PSEUDO_RESTARTING)
+    FadeSounds();
 }
 
 void FadeIn(int fade_mask)