r4161 - trunk/data/qcsrc/server

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Sat Aug 23 11:40:43 EDT 2008


Author: div0
Date: 2008-08-23 11:40:42 -0400 (Sat, 23 Aug 2008)
New Revision: 4161

Modified:
   trunk/data/qcsrc/server/scores.qc
Log:
fix endless loop in scores clearing


Modified: trunk/data/qcsrc/server/scores.qc
===================================================================
--- trunk/data/qcsrc/server/scores.qc	2008-08-23 14:50:09 UTC (rev 4160)
+++ trunk/data/qcsrc/server/scores.qc	2008-08-23 15:40:42 UTC (rev 4161)
@@ -242,7 +242,7 @@
 void Score_ClearAll()
 {
 	entity p, sk;
-	float i;
+	float i, t;
 	FOR_EACH_CLIENTSLOT(p)
 	{
 		sk = p.scorekeeper;
@@ -256,9 +256,9 @@
 			sk.(scores[i]) = 0;
 		}
 	}
-	for(i = 0; i < 16; ++i)
+	for(t = 0; t < 16; ++t)
 	{
-		sk = teamscorekeepers[i];
+		sk = teamscorekeepers[t];
 		if(!sk)
 			continue;
 		for(i = 0; i < MAX_SCORE; ++i)




More information about the nexuiz-commits mailing list