From 9aa2461c79e4fb721c5d480de7eea955a678675d Mon Sep 17 00:00:00 2001 From: havoc Date: Thu, 8 May 2014 00:48:59 +0000 Subject: [PATCH] Fix sv_jumpstep cvar, whose behavior was completely inverted (jump stepping worked with it off, and did not work with it on). git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12068 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=6deb337afd3183721d10723fccd629fd3f5b990c --- sv_phys.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sv_phys.c b/sv_phys.c index e88baa25..50117fa6 100644 --- 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; } -- 2.39.2