From: havoc Date: Sat, 11 Sep 2004 00:46:26 +0000 (+0000) Subject: fix very unreliable jumping (it was doing a stepdown back onto the floor instantly... X-Git-Tag: xonotic-v0.1.0preview~5623 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a9f8b6b84ed031f6fb66a43fe35cf7ecb55e988e;p=xonotic%2Fdarkplaces.git fix very unreliable jumping (it was doing a stepdown back onto the floor instantly if framerate was too high or slowmo too low) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4470 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/sv_phys.c b/sv_phys.c index 1b9a8528..bfd8e9d5 100644 --- a/sv_phys.c +++ b/sv_phys.c @@ -1092,7 +1092,7 @@ void SV_WalkMove (edict_t *ent) if (clip & 2 && sv_wallfriction.integer) SV_WallFriction (ent, stepnormal); } - else if (!sv_gameplayfix_stepdown.integer || !oldonground || ((int)ent->v->flags & FL_ONGROUND) || ent->v->waterlevel >= 2) + else if (!sv_gameplayfix_stepdown.integer || !oldonground || start_velocity[2] > 0 || ((int)ent->v->flags & FL_ONGROUND) || ent->v->waterlevel >= 2) return; // move down