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

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Thu Feb 8 14:30:27 EST 2007


Author: kadaverjack
Date: 2007-02-08 14:30:26 -0500 (Thu, 08 Feb 2007)
New Revision: 2176

Modified:
   branches/nexuiz-2.0/data/qcsrc/server/g_world.qc
   trunk/data/qcsrc/server/g_world.qc
Log:
check if "nextmap" is empty, to avoid error messages with recent dp builds


Modified: branches/nexuiz-2.0/data/qcsrc/server/g_world.qc
===================================================================
--- branches/nexuiz-2.0/data/qcsrc/server/g_world.qc	2007-02-08 17:18:40 UTC (rev 2175)
+++ branches/nexuiz-2.0/data/qcsrc/server/g_world.qc	2007-02-08 19:30:26 UTC (rev 2176)
@@ -699,6 +699,7 @@
 		float allowReset;
 
 		// cvar "nextmap" always gets priority
+		if(cvar_string("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 17:18:40 UTC (rev 2175)
+++ trunk/data/qcsrc/server/g_world.qc	2007-02-08 19:30:26 UTC (rev 2176)
@@ -702,6 +702,7 @@
 		float allowReset;
 
 		// cvar "nextmap" always gets priority
+		if(cvar_string("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