From: Holger Schemel Date: Sun, 5 Jan 2025 15:57:47 +0000 (+0100) Subject: moved code to cover BD screen before fading out when restarting game X-Git-Tag: 4.4.0.1~53 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=54d0d11ca06765944f452e60c8a1ac4d56c0de67;p=rocksndiamonds.git moved code to cover BD screen before fading out when restarting game --- 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); }