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

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Thu Mar 26 04:58:57 EDT 2009


Author: div0
Date: 2009-03-26 04:58:56 -0400 (Thu, 26 Mar 2009)
New Revision: 6299

Modified:
   trunk/data/qcsrc/server/cl_physics.qc
Log:
fix insane ammo consumption when trying to move down :P


Modified: trunk/data/qcsrc/server/cl_physics.qc
===================================================================
--- trunk/data/qcsrc/server/cl_physics.qc	2009-03-26 08:45:38 UTC (rev 6298)
+++ trunk/data/qcsrc/server/cl_physics.qc	2009-03-26 08:58:56 UTC (rev 6299)
@@ -665,7 +665,7 @@
 		wishvel_x *= fxy;
 		wishvel_y *= fxy;
 		wishvel_z = (wishvel_z - sv_gravity) * fz + sv_gravity;
-		fvel = vlen(wishvel) / fvel;
+		fvel = min(1, vlen(wishvel) / fvel);
 
 		if(cvar("g_jetpack_ammo"))
 		{



More information about the nexuiz-commits mailing list