From: Holger Schemel Date: Wed, 1 Nov 2017 23:21:49 +0000 (+0100) Subject: fixed bug with playing level music in main menu when pressing music button X-Git-Tag: 4.1.0.0~76 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=a05bc2ca1119e70c79cf0a8512f1d2ed9a97a5a7;p=rocksndiamonds.git fixed bug with playing level music in main menu when pressing music button --- diff --git a/src/game.c b/src/game.c index e5e128f8..76f34899 100644 --- a/src/game.c +++ b/src/game.c @@ -15787,7 +15787,8 @@ static void HandleGameButtonsExt(int id, int button) SetAudioMode(setup.sound); - PlayLevelMusic(); + if (game_status == GAME_MODE_PLAYING) + PlayLevelMusic(); } RedrawSoundButtonGadget(id);