From: Samual Date: Sun, 8 Jan 2012 23:35:42 +0000 (-0500) Subject: Working on improving stairsmoothing so that it doesn't jitter X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=08dda66e056e14a4a2f4e6b26a90e51c13c2abae;p=xonotic%2Fdarkplaces.git Working on improving stairsmoothing so that it doesn't jitter --- diff --git a/view.c b/view.c index 6e5de158..30de56b3 100644 --- a/view.c +++ b/view.c @@ -487,9 +487,13 @@ void V_CalcRefdefUsing (const matrix4x4_t *entrendermatrix, const vec3_t clviewa } else { + Con_Printf("last on ground time: %f, with z velocity of: %f\n", cl.lastongroundtime, cl.velocity[2]); + // smooth stair stepping, but only if clonground and enabled - if (!clonground || cl_stairsmoothspeed.value <= 0 || teleported) + if (smoothtime == 0.1 || cl_stairsmoothspeed.value <= 0 || teleported) + { cl.stairsmoothz = vieworg[2]; + } else { if (cl.stairsmoothz < vieworg[2])