[nexuiz-commits] r7426 - trunk/data/qcsrc/server
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Tue Aug 11 15:07:02 EDT 2009
Author: div0
Date: 2009-08-11 15:07:02 -0400 (Tue, 11 Aug 2009)
New Revision: 7426
Modified:
trunk/data/qcsrc/server/cl_physics.qc
Log:
fix wallhugging bug
Modified: trunk/data/qcsrc/server/cl_physics.qc
===================================================================
--- trunk/data/qcsrc/server/cl_physics.qc 2009-08-11 14:49:25 UTC (rev 7425)
+++ trunk/data/qcsrc/server/cl_physics.qc 2009-08-11 19:07:02 UTC (rev 7426)
@@ -975,12 +975,11 @@
self.jumppadcount = 0;
}
- if (self.velocity_x || self.velocity_y)
- if (!(self.flags & FL_JUMPRELEASED) || !self.BUTTON_JUMP)
+ v = self.velocity;
+ v_z = 0;
+ f = vlen(v);
+ if(f > 0)
{
- v = self.velocity;
- v_z = 0;
- f = vlen(v);
if (f < sv_stopspeed)
f = 1 - frametime * (sv_stopspeed / f) * sv_friction;
else
@@ -990,6 +989,7 @@
else
self.velocity = '0 0 0';
}
+
// acceleration
wishdir = normalize(wishvel);
wishspeed = vlen(wishvel);
More information about the nexuiz-commits
mailing list