engine: client: workaround buggy position history times going backwards in interpolation code

This commit is contained in:
Alibek Omarov 2022-02-25 02:12:44 +03:00
parent 7821f425e7
commit 13b36e66b3

View File

@ -486,7 +486,9 @@ int CL_InterpolateModel( cl_entity_t *e )
return 0;
}
if( Q_equal( t2, t1 ))
// HACKHACK: workaround buggy position history animtime
// going backward sometimes
if( Q_equal( t2, t1 ) || t2 < t1 )
{
VectorCopy( ph0->origin, e->origin );
VectorCopy( ph0->angles, e->angles );