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.1~29^2~92 X-Git-Url: http://git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=commitdiff_plain;h=6deb337afd3183721d10723fccd629fd3f5b990c 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 --- 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; }