[nexuiz-commits] r8371 - trunk/data/qcsrc/server

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Sat Dec 5 06:36:27 EST 2009


Author: div0
Date: 2009-12-05 06:36:26 -0500 (Sat, 05 Dec 2009)
New Revision: 8371

Modified:
   trunk/data/qcsrc/server/race.qc
Log:
fixing some false alarms by fteqcc


Modified: trunk/data/qcsrc/server/race.qc
===================================================================
--- trunk/data/qcsrc/server/race.qc	2009-12-05 10:11:31 UTC (rev 8370)
+++ trunk/data/qcsrc/server/race.qc	2009-12-05 11:36:26 UTC (rev 8371)
@@ -343,6 +343,7 @@
 void checkpoint_passed()
 {
 	string oldmsg;
+	entity cp;
 
 	if(other.classname == "porto")
 	{
@@ -381,7 +382,6 @@
 			self.race_checkpoint = other.race_checkpoint;
 		}
 
-		entity cp;
 		float largest_cp_id;
 		float cp_amount;
 		for(cp = world; (cp = find(cp, classname, "target_checkpoint"));) {
@@ -451,7 +451,6 @@
 
 		if(defrag_ents && defragcpexists < 0 && self.classname == "target_stopTimer")
 		{
-			entity cp;
 			float fh;
 			defragcpexists = fh = fopen(strcat("maps/", GetMapname(), ".defragcp"), FILE_WRITE);
 			if(fh >= 0)
@@ -569,7 +568,7 @@
 		defragcpexists = fh = fopen(strcat("maps/", GetMapname(), ".defragcp"), FILE_READ);
 		if(fh >= 0)
 		{
-			while(l = fgets(fh))
+			while((l = fgets(fh)))
 			{
 				len = tokenize_console(l);
 				if(len != 2) {



More information about the nexuiz-commits mailing list