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

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Thu Mar 26 13:13:09 EDT 2009


Author: div0
Date: 2009-03-26 13:13:07 -0400 (Thu, 26 Mar 2009)
New Revision: 6312

Modified:
   trunk/data/qcsrc/server/cl_physics.qc
Log:
fix an acceleration bug in the jetpack


Modified: trunk/data/qcsrc/server/cl_physics.qc
===================================================================
--- trunk/data/qcsrc/server/cl_physics.qc	2009-03-26 17:04:03 UTC (rev 6311)
+++ trunk/data/qcsrc/server/cl_physics.qc	2009-03-26 17:13:07 UTC (rev 6312)
@@ -649,7 +649,8 @@
 		// fix speedhacks :P
 		wishvel = normalize(wishvel) * min(vlen(wishvel) / maxairspd, 1);
 		// add the unused velocity as up component
-		wishvel_z += sqrt(max(0, 1 - wishvel * wishvel));
+		wishvel_z = 0;
+		wishvel_z = sqrt(max(0, 1 - wishvel * wishvel));
 		// it is now normalized, so...
 		wishvel_x *= cvar("g_jetpack_acceleration_side");
 		wishvel_y *= cvar("g_jetpack_acceleration_side");



More information about the nexuiz-commits mailing list