r1252 - trunk/code/client

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Sun Feb 10 16:01:09 EST 2008


Author: tma
Date: 2008-02-10 16:01:06 -0500 (Sun, 10 Feb 2008)
New Revision: 1252

Modified:
   trunk/code/client/snd_dma.c
Log:
* Fixes to some muppetry in snd_dma.c (arQon)


Modified: trunk/code/client/snd_dma.c
===================================================================
--- trunk/code/client/snd_dma.c	2008-01-31 17:44:33 UTC (rev 1251)
+++ trunk/code/client/snd_dma.c	2008-02-10 21:01:06 UTC (rev 1252)
@@ -493,8 +493,8 @@
 	ch = s_channels;
 	inplay = 0;
 	for ( i = 0; i < MAX_CHANNELS ; i++, ch++ ) {		
-		if (ch[i].entnum == entityNum && ch[i].thesfx == sfx) {
-			if (time - ch[i].allocTime < 50) {
+		if (ch->entnum == entityNum && ch->thesfx == sfx) {
+			if (time - ch->allocTime < 50) {
 //				if (Cvar_VariableValue( "cg_showmiss" )) {
 //					Com_Printf("double sound start\n");
 //				}
@@ -531,6 +531,7 @@
 				}
 			}
 			if (chosen == -1) {
+				ch = s_channels;
 				if (ch->entnum == listener_number) {
 					for ( i = 0 ; i < MAX_CHANNELS ; i++, ch++ ) {
 						if (ch->allocTime<oldest) {




More information about the quake3-commits mailing list