[nexuiz-commits] r7710 - trunk/data/qcsrc/common

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Wed Sep 9 09:09:27 EDT 2009


Author: div0
Date: 2009-09-09 09:09:27 -0400 (Wed, 09 Sep 2009)
New Revision: 7710

Modified:
   trunk/data/qcsrc/common/mapinfo.qc
Log:
clean up the campaign cvar list


Modified: trunk/data/qcsrc/common/mapinfo.qc
===================================================================
--- trunk/data/qcsrc/common/mapinfo.qc	2009-09-09 13:08:55 UTC (rev 7709)
+++ trunk/data/qcsrc/common/mapinfo.qc	2009-09-09 13:09:27 UTC (rev 7710)
@@ -583,7 +583,10 @@
 	else
 	{
 		dprint("Applying temporary setting ", t, " := ", s, "\n");
-		cvar_settemp(t, s);
+		if(cvar("g_campaign"))
+			cvar_set(t, s); // this is a wrapper and is always temporary anyway; no need to backup old values then
+		else
+			cvar_settemp(t, s);
 	}
 }
 



More information about the nexuiz-commits mailing list