From: Holger Schemel Date: Thu, 21 Apr 2016 18:00:40 +0000 (+0200) Subject: fixed title screen sound handling to not also stop title animation sounds X-Git-Tag: 4.0.0.0-rc2~18 X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=commitdiff_plain;h=fd7a17027bb5c580b5d007fa33109f8a914d605b fixed title screen sound handling to not also stop title animation sounds --- 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);