mirror of
https://github.com/UberGames/lilium-voyager.git
synced 2024-12-13 13:40:56 +00:00
* Fixed the bug where the "doppler" effect code could cause a temporary client lock up
This commit is contained in:
parent
de1840a23a
commit
24d3c6b2a2
1 changed files with 3 additions and 0 deletions
|
@ -781,6 +781,9 @@ void S_AddLoopingSound( int entityNum, const vec3_t origin, const vec3_t velocit
|
||||||
if (loopSounds[entityNum].dopplerScale<=1.0) {
|
if (loopSounds[entityNum].dopplerScale<=1.0) {
|
||||||
loopSounds[entityNum].doppler = qfalse; // don't bother doing the math
|
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;
|
loopSounds[entityNum].framenum = cls.framecount;
|
||||||
|
|
Loading…
Reference in a new issue