fixed title screen sound handling to not also stop title animation sounds
authorHolger Schemel <info@artsoft.org>
Thu, 21 Apr 2016 18:00:40 +0000 (20:00 +0200)
committerHolger Schemel <info@artsoft.org>
Thu, 21 Apr 2016 18:00:40 +0000 (20:00 +0200)
src/screens.c

index 94eb8895e723a87c1731916810607f865d30370e..c69b78fb4fcd4e22bd1f2e12a742ba23b4756479 100644 (file)
@@ -1663,9 +1663,9 @@ void HandleTitleScreen(int mx, int my, int dx, int dy, int button)
       sound = getTitleSound(tci);
       music = getTitleMusic(tci);
 
-      if (sound == SND_UNDEFINED || sound != last_sound)
-       FadeSounds();
-      if (music == MUS_UNDEFINED || music != last_music)
+      if (last_sound != SND_UNDEFINED && sound != last_sound)
+       FadeSound(last_sound);
+      if (last_music != MUS_UNDEFINED && music != last_music)
        FadeMusic();
 
       fading = getTitleFading(tci);