From d417a11b351178a0b53895632f3f4292025e6599 Mon Sep 17 00:00:00 2001 From: divverent Date: Thu, 19 Aug 2010 05:35:13 +0000 Subject: [PATCH] use cl.movevars_stepheight for stair smoothing git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10395 d7cf8633-e32d-0410-b094-e92efae38249 --- view.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.39.2