fixed bug with fading music after disabling in setup menu
authorHolger Schemel <holger.schemel@virtion.de>
Thu, 22 Aug 2024 21:22:32 +0000 (23:22 +0200)
committerHolger Schemel <holger.schemel@virtion.de>
Thu, 22 Aug 2024 21:22:32 +0000 (23:22 +0200)
src/tools.c

index bfcaaed04da0fda5dab6e2ef36c7b082a5486388..9422b837063980205dab7a451b35b3e69e3d2a7e 100644 (file)
@@ -11474,7 +11474,7 @@ static void FadeMenuMusic(void)
   char *curr_music = getCurrentlyPlayingMusicFilename();
   char *next_music = getMusicInfoEntryFilename(menu.music[game_status]);
 
-  if (!strEqual(curr_music, next_music))
+  if (!strEqual(curr_music, next_music) || !setup.sound_music)
     FadeMusic();
 }