fixed bug with covering screen when loading next level
authorHolger Schemel <holger.schemel@virtion.de>
Tue, 10 Dec 2024 19:40:25 +0000 (20:40 +0100)
committerHolger Schemel <holger.schemel@virtion.de>
Tue, 10 Dec 2024 17:41:27 +0000 (18:41 +0100)
src/game.c

index 2ae3cf0d51c73ccde7c36a4d360f82d67f086fcc..dfa43ee74817431ed7940325a0d3fab74b6fcd30 100644 (file)
@@ -4973,6 +4973,10 @@ static boolean AdvanceToNextLevel(void)
       scores.continue_playing = TRUE;
       scores.next_level_nr = level_nr;
 
+      // cover screen before loading next level (which may have different size and color)
+      if (game_bd.cover_screen)
+        CoverScreen_BD();
+
       LoadLevel(level_nr);
 
       SaveLevelSetup_SeriesInfo();