From 54d0d11ca06765944f452e60c8a1ac4d56c0de67 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Sun, 5 Jan 2025 16:57:47 +0100 Subject: [PATCH] moved code to cover BD screen before fading out when restarting game --- src/game.c | 4 ++++ src/tape.c | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/game.c b/src/game.c index c4af3361..407b9c32 100644 --- a/src/game.c +++ b/src/game.c @@ -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 { diff --git a/src/tape.c b/src/tape.c index 9d729799..35140ad4 100644 --- a/src/tape.c +++ b/src/tape.c @@ -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); } -- 2.34.1