diff options
-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; |