r4362 - trunk/data/qcsrc/server

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Fri Sep 5 14:39:39 EDT 2008


Author: div0
Date: 2008-09-05 14:39:39 -0400 (Fri, 05 Sep 2008)
New Revision: 4362

Modified:
   trunk/data/qcsrc/server/clientcommands.qc
Log:
maybe missing initialization breaks ready-restart so much on my ctf server?


Modified: trunk/data/qcsrc/server/clientcommands.qc
===================================================================
--- trunk/data/qcsrc/server/clientcommands.qc	2008-09-05 18:22:07 UTC (rev 4361)
+++ trunk/data/qcsrc/server/clientcommands.qc	2008-09-05 18:39:39 UTC (rev 4362)
@@ -415,7 +415,7 @@
 	restart_countdown = time + RESTART_COUNTDOWN;
 	restart_mapalreadyrestarted = 0; //reset this var, needed when cvar sv_ready_restart_repeatable is in use
 	//reset the .ready status of all players (also spectators)
-	FOR_EACH_CLIENT(e)
+	FOR_EACH_CLIENTSLOT(e)
 	{
 		e.ready = 0;
 	}
@@ -474,6 +474,8 @@
 	local entity e;
 	local float r, p;
 
+	r = p = 0;
+
 	FOR_EACH_REALPLAYER(e)
 	{
 		p += 1;




More information about the nexuiz-commits mailing list