-/*
-==================
-CL_StairSmoothing
-
-==================
-*/
-void CL_StairSmoothing (void)
-{
- if (v_dmg_time > 0)
- v_dmg_time -= (cl.time - cl.oldtime);
-
- // stair smoothing
- if (cl.onground && cl.stairoffset < 0)
- {
- cl.stairoffset += (cl.time - cl.oldtime) * cl_stairsmoothspeed.value;
- cl.stairoffset = bound(-16, cl.stairoffset, 0);
- }
- else if (cl.onground && cl.stairoffset > 0)
- {
- cl.stairoffset -= (cl.time - cl.oldtime) * cl_stairsmoothspeed.value;
- cl.stairoffset = bound(0, cl.stairoffset, 16);
- }
- else
- cl.stairoffset = 0;
-}
-