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~279 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d896dc4570e9eea6e50367f9a1c13a8d2a16b865;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 ::stable-branch::merge=d417a11b351178a0b53895632f3f4292025e6599 --- 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)