From fd7a17027bb5c580b5d007fa33109f8a914d605b Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Thu, 21 Apr 2016 20:00:40 +0200 Subject: [PATCH] fixed title screen sound handling to not also stop title animation sounds --- src/screens.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/screens.c b/src/screens.c index 94eb8895..c69b78fb 100644 --- a/src/screens.c +++ b/src/screens.c @@ -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); -- 2.34.1