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

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Sat May 16 10:58:20 EDT 2009


Author: div0
Date: 2009-05-16 10:58:20 -0400 (Sat, 16 May 2009)
New Revision: 6735

Modified:
   trunk/data/qcsrc/server/cl_client.qc
Log:
forbid LOD models if ALLOW_VARIABLE_LOD is set


Modified: trunk/data/qcsrc/server/cl_client.qc
===================================================================
--- trunk/data/qcsrc/server/cl_client.qc	2009-05-15 14:29:33 UTC (rev 6734)
+++ trunk/data/qcsrc/server/cl_client.qc	2009-05-16 14:58:20 UTC (rev 6735)
@@ -362,6 +362,13 @@
 		if(substring(plyermodel,strlen(plyermodel)-4,4) != ".md3")
 		if(substring(plyermodel,strlen(plyermodel)-4,4) != ".psk")
 			return FallbackPlayerModel;
+#ifdef ALLOW_VARIABLE_LOD
+		// forbid the LOD models
+		if(substring(plyermodel, strlen(plyermodel)-6,2) == "_1")
+			return FallbackPlayerModel;
+		if(substring(plyermodel, strlen(plyermodel)-6,2) == "_2")
+			return FallbackPlayerModel;
+#endif
 		if(plyermodel != strtolower(plyermodel))
 			return FallbackPlayerModel;
 		if(!fexists(plyermodel))



More information about the nexuiz-commits mailing list