From a9f8b6b84ed031f6fb66a43fe35cf7ecb55e988e Mon Sep 17 00:00:00 2001 From: havoc Date: Sat, 11 Sep 2004 00:46:26 +0000 Subject: [PATCH] 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 --- sv_phys.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.2