From 86c548162abe1f37a62ee5922cb2fd4d29bc6f92 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Tue, 17 Apr 2018 20:37:33 +0200 Subject: [PATCH] changed starting music for MM game engine after charging laser Before, music was started immediately after opening the game panel door, and therefore before starting the initial "rotating mirrors and charging laser" sequence when playing levels using the Mirror Magic game engine. Now, music starts after that initialization sequence is finished (just like it was done in Mirror Magic 2.0.2). --- src/game.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/game.c b/src/game.c index 2f57bf51..6d07ec54 100644 --- a/src/game.c +++ b/src/game.c @@ -4186,11 +4186,6 @@ void InitGame() OpenDoor(DOOR_OPEN_ALL); - PlaySound(SND_GAME_STARTING); - - if (setup.sound_music) - PlayLevelMusic(); - KeyboardAutoRepeatOffUnlessAutoplay(); #if DEBUG_INIT_PLAYER @@ -4236,6 +4231,14 @@ void InitGame() InitGameActions_MM(); SaveEngineSnapshotToListInitial(); + + if (!game.restart_level) + { + PlaySound(SND_GAME_STARTING); + + if (setup.sound_music) + PlayLevelMusic(); + } } void UpdateEngineValues(int actual_scroll_x, int actual_scroll_y, -- 2.34.1