r129 - trunk/code/client

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Thu Sep 29 18:35:05 EDT 2005


Author: tma
Date: 2005-09-29 18:35:05 -0400 (Thu, 29 Sep 2005)
New Revision: 129

Modified:
   trunk/code/client/snd_dma.c
Log:
* Fixed the bug where the "doppler" effect code could cause a temporary client lock up


Modified: trunk/code/client/snd_dma.c
===================================================================
--- trunk/code/client/snd_dma.c	2005-09-29 14:00:03 UTC (rev 128)
+++ trunk/code/client/snd_dma.c	2005-09-29 22:35:05 UTC (rev 129)
@@ -781,6 +781,9 @@
 		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;




More information about the quake3-commits mailing list