Browse Source

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

pull/2/head
Alibek Omarov 3 years ago
parent
commit
13b36e66b3
  1. 4
      engine/client/cl_frame.c

4
engine/client/cl_frame.c

@ -486,7 +486,9 @@ int CL_InterpolateModel( cl_entity_t *e ) @@ -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 );

Loading…
Cancel
Save