* Fixed the bug where the "doppler" effect code could cause a temporary client lock up
This commit is contained in:
1 parent
de1840a23a
commit
24d3c6b2a2
1 file changed
+3
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user