From e0252b4e14dc00370704d273a575e7d05e280800 Mon Sep 17 00:00:00 2001 From: tma Date: Thu, 29 Sep 2005 22:35:05 +0000 Subject: * 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 --- code/client/snd_dma.c | 3 +++ 1 file changed, 3 insertions(+) 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; -- cgit v1.2.3