diff options
author | tma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2005-09-29 22:35:05 +0000 |
---|---|---|
committer | tma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2005-09-29 22:35:05 +0000 |
commit | e0252b4e14dc00370704d273a575e7d05e280800 (patch) | |
tree | e6f3fd8a494ee575e6e7206b0287fb7990ee6789 | |
parent | 9f421b4559a374814107ded1e1a377d83fb6c401 (diff) | |
download | ioquake3-aero-e0252b4e14dc00370704d273a575e7d05e280800.tar.gz ioquake3-aero-e0252b4e14dc00370704d273a575e7d05e280800.zip |
* Fixed the bug where the "doppler" effect code could cause a temporary client lock up
git-svn-id: svn://svn.icculus.org/quake3/trunk@129 edf5b092-35ff-0310-97b2-ce42778d08ea
-rw-r--r-- | code/client/snd_dma.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/code/client/snd_dma.c b/code/client/snd_dma.c index 758f988..2a99aae 100644 --- a/code/client/snd_dma.c +++ b/code/client/snd_dma.c @@ -781,6 +781,9 @@ void S_AddLoopingSound( int entityNum, const vec3_t origin, const vec3_t velocit if (loopSounds[entityNum].dopplerScale<=1.0) { loopSounds[entityNum].doppler = qfalse; // don't bother doing the math } + else if (loopSounds[entityNum].dopplerScale>(float)SND_CHUNK_SIZE) { + loopSounds[entityNum].dopplerScale = (float)SND_CHUNK_SIZE; + } } loopSounds[entityNum].framenum = cls.framecount; |