r4078 - trunk/data/qcsrc/server

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Sat Aug 9 11:28:51 EDT 2008


Author: div0
Date: 2008-08-09 11:28:51 -0400 (Sat, 09 Aug 2008)
New Revision: 4078

Modified:
   trunk/data/qcsrc/server/g_subs.qc
Log:
brush entities: if model is not set, do not zero mins/maxs. Allows creating them "manually" by an ent file without recompiling.


Modified: trunk/data/qcsrc/server/g_subs.qc
===================================================================
--- trunk/data/qcsrc/server/g_subs.qc	2008-08-09 15:14:07 UTC (rev 4077)
+++ trunk/data/qcsrc/server/g_subs.qc	2008-08-09 15:28:51 UTC (rev 4078)
@@ -393,7 +393,8 @@
 	if (self.angles != '0 0 0')
 		SetMovedir ();
 	self.solid = SOLID_BSP;
-	setmodel (self, self.model);	// set size and link into world, no precision needed
+	if(self.model != "")
+		setmodel (self, self.model);	// set size and link into world, no precision needed
 	self.movetype = MOVETYPE_PUSH;
 //	self.modelindex = 0;
 	self.model = "";




More information about the nexuiz-commits mailing list