ref: 9736ada9a68709c1aea0093aef12f2855d152b2c
parent: 7f69666e50aa954c1339890e1e471846d84680a7
author: Simon Howard <[email protected]>
date: Wed Oct 8 18:44:35 EDT 2008
Fix sound effects! Subversion-branch: /branches/raven-branch Subversion-revision: 1345
--- a/src/hexen/s_sound.c
+++ b/src/hexen/s_sound.c
@@ -392,6 +392,8 @@
}
}
+ Channel[i].mo = origin;
+
vol = (SoundCurve[dist] * (snd_MaxVolume * 8) * volume) >> 14;
if (origin == players[displayplayer].mo)
{
@@ -423,11 +425,15 @@
Channel[i].pitch = 127;
}
#endif
+ if (S_sfx[sound_id].lumpnum == 0)
+ {
+ S_sfx[sound_id].lumpnum = I_GetSfxLumpNum(&S_sfx[sound_id]);
+ }
+
Channel[i].handle = I_StartSound(&S_sfx[sound_id],
i,
vol,
sep /* , Channel[i].pitch] */);
- Channel[i].mo = origin;
Channel[i].sound_id = sound_id;
Channel[i].priority = priority;
Channel[i].volume = volume;