I think that steps between 94 and 98 are wrong, remove them.

Predicting these steps leads to a heavily stuttering elevator in
hangar1. I think that steps between 94 and 98 can't appear on stairs, so
just remove them. If I'm wrong we need a hack to the hack ontop of the
hack... ^^
This commit is contained in:
Yamagi Burmeister 2016-08-17 21:03:36 +02:00
parent 6ff41e6b2f
commit 1bbd8c04ff

View file

@ -297,8 +297,9 @@ CL_PredictMovement(void)
step = pm.s.origin[2] - (int)(cl.predicted_origin[2] * 8);
if (((step > 62 && step < 66) || (step > 94 && step < 98) || (step > 126 && step < 130))
&& !VectorCompare((float *)pm.s.velocity, vec3_origin) && (pm.s.pm_flags & PMF_ON_GROUND))
if (((step > 62 && step < 66) || (step > 126 && step < 130))
&& !VectorCompare((float *)pm.s.velocity, vec3_origin)
&& (pm.s.pm_flags & PMF_ON_GROUND))
{
cl.predicted_step = step * 0.125f;
cl.predicted_step_time = cls.realtime - (int)(cls.nframetime * 500);