From: havoc Date: Thu, 8 May 2014 00:48:59 +0000 (+0000) Subject: Fix sv_jumpstep cvar, whose behavior was completely inverted (jump stepping worked... X-Git-Tag: xonotic-v0.8.0~69 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=9aa2461c79e4fb721c5d480de7eea955a678675d;p=xonotic%2Fdarkplaces.git 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 --- 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; }