X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame.c;h=6d07ec5489b05a0a8cec073449b8bd2af0e6eed3;hb=857e68049be393b09c7066cda9eafdbd05d18cfc;hp=6e64d55c532278896e9ada1b2a4b39c4765a30bc;hpb=a2fe511829e5fdf944a59cebe635154b0cbcc1d6;p=rocksndiamonds.git diff --git a/src/game.c b/src/game.c index 6e64d55c..6d07ec54 100644 --- a/src/game.c +++ b/src/game.c @@ -3345,10 +3345,12 @@ void InitGame() player->mouse_action.lx = 0; player->mouse_action.ly = 0; player->mouse_action.button = 0; + player->mouse_action.button_hint = 0; player->effective_mouse_action.lx = 0; player->effective_mouse_action.ly = 0; player->effective_mouse_action.button = 0; + player->effective_mouse_action.button_hint = 0; player->score = 0; player->score_final = 0; @@ -4184,11 +4186,6 @@ void InitGame() OpenDoor(DOOR_OPEN_ALL); - PlaySound(SND_GAME_STARTING); - - if (setup.sound_music) - PlayLevelMusic(); - KeyboardAutoRepeatOffUnlessAutoplay(); #if DEBUG_INIT_PLAYER @@ -4234,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,