projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added delay counter data type and adjusted related functions
[rocksndiamonds.git]
/
src
/
libgame
/
sound.c
diff --git
a/src/libgame/sound.c
b/src/libgame/sound.c
index 12b01c382b8f1c50cd62403b9ce65317fa9e8840..35c0a2465457b8f34e33423aa3a91213c7e0de3d 100644
(file)
--- a/
src/libgame/sound.c
+++ b/
src/libgame/sound.c
@@
-166,8
+166,8
@@
static boolean Mixer_ChannelExpired(int channel)
if (expire_loop_sounds &&
IS_LOOP(mixer[channel]) && !IS_MUSIC(mixer[channel]) &&
if (expire_loop_sounds &&
IS_LOOP(mixer[channel]) && !IS_MUSIC(mixer[channel]) &&
- DelayReached(&mixer[channel].playing_starttime,
-
SOUND_LOOP_EXPIRATION_TIME
))
+ DelayReached
Ext2
(&mixer[channel].playing_starttime,
+
SOUND_LOOP_EXPIRATION_TIME, Counter()
))
return TRUE;
if (!Mix_Playing(channel))
return TRUE;
if (!Mix_Playing(channel))