From: divverent Date: Thu, 19 Aug 2010 05:35:13 +0000 (+0000) Subject: use cl.movevars_stepheight for stair smoothing X-Git-Tag: xonotic-v0.1.0preview~230^2~87 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d417a11b351178a0b53895632f3f4292025e6599;p=xonotic%2Fdarkplaces.git use cl.movevars_stepheight for stair smoothing git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10395 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/view.c b/view.c index 97546eb0..345e86d9 100644 --- a/view.c +++ b/view.c @@ -478,9 +478,9 @@ void V_CalcRefdef (void) else { if (cl.stairsmoothz < vieworg[2]) - vieworg[2] = cl.stairsmoothz = bound(vieworg[2] - 16, cl.stairsmoothz + smoothtime * cl_stairsmoothspeed.value, vieworg[2]); + vieworg[2] = cl.stairsmoothz = bound(vieworg[2] - cl.movevars_stepheight, cl.stairsmoothz + smoothtime * cl_stairsmoothspeed.value, vieworg[2]); else if (cl.stairsmoothz > vieworg[2]) - vieworg[2] = cl.stairsmoothz = bound(vieworg[2], cl.stairsmoothz - smoothtime * cl_stairsmoothspeed.value, vieworg[2] + 16); + vieworg[2] = cl.stairsmoothz = bound(vieworg[2], cl.stairsmoothz - smoothtime * cl_stairsmoothspeed.value, vieworg[2] + cl.movevars_stepheight); } // apply qw weapon recoil effect (this did not work in QW)