From: Holger Schemel Date: Tue, 17 Apr 2018 18:37:33 +0000 (+0200) Subject: changed starting music for MM game engine after charging laser X-Git-Tag: 4.1.1.0~195 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=86c548162abe1f37a62ee5922cb2fd4d29bc6f92;p=rocksndiamonds.git 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). --- 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,