Browse Source

engine: client: correctly support ENGINE_COMPUTE_STUDIO_LERP feature flag without STUDIO_INTERPOLATION_FIX enabled

pull/2/head
Alibek Omarov 6 months ago
parent
commit
1ae01d89de
  1. 18
      engine/client/cl_frame.c

18
engine/client/cl_frame.c

@ -1238,13 +1238,23 @@ void CL_LinkPacketEntities( frame_t *frame )
VectorCopy( ent->curstate.origin, ent->latched.prevorigin ); VectorCopy( ent->curstate.origin, ent->latched.prevorigin );
VectorCopy( ent->curstate.angles, ent->latched.prevangles ); VectorCopy( ent->curstate.angles, ent->latched.prevangles );
// disable step interpolation in client.dll if( !FBitSet( host.features, ENGINE_COMPUTE_STUDIO_LERP ))
ent->curstate.movetype = MOVETYPE_NONE; {
// disable step interpolation in client.dll
ent->curstate.movetype = MOVETYPE_NONE;
}
} }
else else
{ {
// restore step interpolation in client.dll if( FBitSet( host.features, ENGINE_COMPUTE_STUDIO_LERP ))
ent->curstate.movetype = MOVETYPE_STEP; {
interpolate = true;
}
else
{
// restore step interpolation in client.dll
ent->curstate.movetype = MOVETYPE_STEP;
}
} }
#endif #endif
} }

Loading…
Cancel
Save