projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
617eef2
)
fixed title screen sound handling to not also stop title animation sounds
author
Holger Schemel
<info@artsoft.org>
Thu, 21 Apr 2016 18:00:40 +0000
(20:00 +0200)
committer
Holger Schemel
<info@artsoft.org>
Thu, 21 Apr 2016 18:00:40 +0000
(20:00 +0200)
src/screens.c
patch
|
blob
|
history
diff --git
a/src/screens.c
b/src/screens.c
index 94eb8895e723a87c1731916810607f865d30370e..c69b78fb4fcd4e22bd1f2e12a742ba23b4756479 100644
(file)
--- 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)
- FadeSound
s(
);
- 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);