r2177 - branches/nexuiz-2.0/data/qcsrc/server trunk/data/qcsrc/server

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Thu Feb 8 14:58:06 EST 2007


Author: kadaverjack
Date: 2007-02-08 14:58:06 -0500 (Thu, 08 Feb 2007)
New Revision: 2177

Modified:
   branches/nexuiz-2.0/data/qcsrc/server/g_world.qc
   trunk/data/qcsrc/server/g_world.qc
Log:
simplified nextmap check (might be a bit more efficient that way ;))


Modified: branches/nexuiz-2.0/data/qcsrc/server/g_world.qc
===================================================================
--- branches/nexuiz-2.0/data/qcsrc/server/g_world.qc	2007-02-08 19:30:26 UTC (rev 2176)
+++ branches/nexuiz-2.0/data/qcsrc/server/g_world.qc	2007-02-08 19:58:06 UTC (rev 2177)
@@ -699,7 +699,7 @@
 		float allowReset;
 
 		// cvar "nextmap" always gets priority
-		if(cvar_string("nextmap") != "")
+		if(cvar("nextmap"))
 		if(TryFile(strcat("maps/", cvar_string("nextmap"), ".mapcfg")))
 		{
 			localcmd(strcat("exec \"maps/", cvar_string("nextmap"), ".mapcfg\"\n"));

Modified: trunk/data/qcsrc/server/g_world.qc
===================================================================
--- trunk/data/qcsrc/server/g_world.qc	2007-02-08 19:30:26 UTC (rev 2176)
+++ trunk/data/qcsrc/server/g_world.qc	2007-02-08 19:58:06 UTC (rev 2177)
@@ -702,7 +702,7 @@
 		float allowReset;
 
 		// cvar "nextmap" always gets priority
-		if(cvar_string("nextmap") != "")
+		if(cvar("nextmap"))
 		if(TryFile(strcat("maps/", cvar_string("nextmap"), ".mapcfg")))
 		{
 			localcmd(strcat("exec \"maps/", cvar_string("nextmap"), ".mapcfg\"\n"));




More information about the nexuiz-commits mailing list