r1819 - branches/nexuiz-2.0/data/qcsrc/server

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Sun Aug 13 19:29:51 EDT 2006


Author: div0
Date: 2006-08-13 19:29:51 -0400 (Sun, 13 Aug 2006)
New Revision: 1819

Modified:
   branches/nexuiz-2.0/data/qcsrc/server/t_jumppads.qc
Log:
fix mins/maxs for model targetting jumppads


Modified: branches/nexuiz-2.0/data/qcsrc/server/t_jumppads.qc
===================================================================
--- branches/nexuiz-2.0/data/qcsrc/server/t_jumppads.qc	2006-08-13 23:28:48 UTC (rev 1818)
+++ branches/nexuiz-2.0/data/qcsrc/server/t_jumppads.qc	2006-08-13 23:29:51 UTC (rev 1819)
@@ -25,9 +25,7 @@
 	local float grav, sdist, zdist, vs, vz, jumpheight, trajsign;
 	local vector sdir, torg;
 
-	torg = tgt.origin;
-	if(tgt.model)
-		torg = torg + (tgt.mins + tgt.maxs) * 0.5;
+	torg = tgt.origin + (tgt.mins + tgt.maxs) * 0.5;
 
 	grav = cvar("sv_gravity");
 




More information about the nexuiz-commits mailing list