fixed bug with playing level music in main menu when pressing music button
authorHolger Schemel <info@artsoft.org>
Wed, 1 Nov 2017 23:21:49 +0000 (00:21 +0100)
committerHolger Schemel <info@artsoft.org>
Fri, 23 Mar 2018 22:21:15 +0000 (23:21 +0100)
src/game.c

index e5e128f8539c9158c916effcb0802c2a015326c6..76f348990e8c5a593fc480199b4bb6332cde29af 100644 (file)
@@ -15787,7 +15787,8 @@ static void HandleGameButtonsExt(int id, int button)
 
        SetAudioMode(setup.sound);
 
-       PlayLevelMusic();
+       if (game_status == GAME_MODE_PLAYING)
+         PlayLevelMusic();
       }
 
       RedrawSoundButtonGadget(id);