fixed bug with playing level music in main menu when pressing music button
[rocksndiamonds.git] / src / game.c
index e5e128f8539c9158c916effcb0802c2a015326c6..76f348990e8c5a593fc480199b4bb6332cde29af 100644 (file)
@@ -15787,7 +15787,8 @@ static void HandleGameButtonsExt(int id, int button)
 
        SetAudioMode(setup.sound);
 
 
        SetAudioMode(setup.sound);
 
-       PlayLevelMusic();
+       if (game_status == GAME_MODE_PLAYING)
+         PlayLevelMusic();
       }
 
       RedrawSoundButtonGadget(id);
       }
 
       RedrawSoundButtonGadget(id);