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

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Tue Dec 15 08:17:30 EST 2009


Author: div0
Date: 2009-12-15 08:17:29 -0500 (Tue, 15 Dec 2009)
New Revision: 8394

Modified:
   trunk/data/qcsrc/common/mapinfo.qc
Log:
also bail out if trying to cvar_set "" (which would crash)


Modified: trunk/data/qcsrc/common/mapinfo.qc
===================================================================
--- trunk/data/qcsrc/common/mapinfo.qc	2009-12-14 15:58:24 UTC (rev 8393)
+++ trunk/data/qcsrc/common/mapinfo.qc	2009-12-15 13:17:29 UTC (rev 8394)
@@ -549,6 +549,8 @@
 		else
 			print("Map ", pFilename, " uses too many levels of inclusion\n");
 	}
+	else if(t == "")
+		print("Map ", pFilename, " contains a potentially harmful setting, ignored\n");
 	else if not(cvar_value_issafe(t))
 		print("Map ", pFilename, " contains a potentially harmful setting, ignored\n");
 	else if not (cvar_value_issafe(s))



More information about the nexuiz-commits mailing list