diff --git a/code/client/snd_dma.c b/code/client/snd_dma.c index 758f9883..2a99aae2 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;