]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Fix sv_jumpstep cvar, whose behavior was completely inverted (jump stepping worked...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 8 May 2014 00:48:59 +0000 (00:48 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 8 May 2014 00:48:59 +0000 (00:48 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12068 d7cf8633-e32d-0410-b094-e92efae38249

sv_phys.c

index e88baa2578c7e575dabdc0af5c74b45922ad988f..50117fa6522db3b59e7c3daffe3e678521b8c4e2 100644 (file)
--- a/sv_phys.c
+++ b/sv_phys.c
@@ -2435,8 +2435,8 @@ static void SV_WalkMove (prvm_edict_t *ent)
                        if (PRVM_serveredictfloat(ent, movetype) != MOVETYPE_WALK)
                                return;
 
-                       // only step up while jumping if that is enabled
-                       if (sv_jumpstep.integer)
+                       // return if attempting to jump while airborn (unless sv_jumpstep)
+                       if (!sv_jumpstep.integer)
                                if (!oldonground && PRVM_serveredictfloat(ent, waterlevel) == 0)
                                        return;
                }