[nexuiz-commits] r8592 - trunk/data/qcsrc/server
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Sat Jan 30 03:12:45 EST 2010
Author: div0
Date: 2010-01-30 03:12:45 -0500 (Sat, 30 Jan 2010)
New Revision: 8592
Modified:
trunk/data/qcsrc/server/cl_physics.qc
Log:
fix a minor code bug that should never occur in the last commit ;)
Modified: trunk/data/qcsrc/server/cl_physics.qc
===================================================================
--- trunk/data/qcsrc/server/cl_physics.qc 2010-01-30 08:08:38 UTC (rev 8591)
+++ trunk/data/qcsrc/server/cl_physics.qc 2010-01-30 08:12:45 UTC (rev 8592)
@@ -441,6 +441,8 @@
vel_xy_current = vlen(vel_xy);
vel_xy_forward = vel_xy_current + bound(0, wishspeed - vel_xy_current, step) * accelqw + step * (1 - accelqw);
vel_xy_backward = vel_xy_current - bound(0, wishspeed + vel_xy_current, step) * accelqw - step * (1 - accelqw);
+ if(vel_xy_backward < 0)
+ vel_xy_backward = 0; // not that it REALLY occurs that this would cause wrong behaviour afterwards
vel_straight = vel_straight + bound(0, wishspeed - vel_straight, step) * accelqw + step * (1 - accelqw);
More information about the nexuiz-commits
mailing list