]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix very unreliable jumping (it was doing a stepdown back onto the floor instantly...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 11 Sep 2004 00:46:26 +0000 (00:46 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 11 Sep 2004 00:46:26 +0000 (00:46 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4470 d7cf8633-e32d-0410-b094-e92efae38249

sv_phys.c

index 1b9a85285314429e4bedd863e7e1db02a53cecd0..bfd8e9d50cedf0f1701bb0b1ed5d4c3caf3ba9af 100644 (file)
--- 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