Browse Source

engine: client: adapt to RefAPI 4 changes. Fix interpolation issue after reloading a save

pull/2/head
Alibek Omarov 1 year ago
parent
commit
4b5ee87de1
  1. 4
      engine/client/cl_frame.c

4
engine/client/cl_frame.c

@ -241,7 +241,7 @@ CL_GetStudioEstimatedFrame @@ -241,7 +241,7 @@ CL_GetStudioEstimatedFrame
====================
*/
float CL_GetStudioEstimatedFrame( cl_entity_t *ent )
static float CL_GetStudioEstimatedFrame( cl_entity_t *ent )
{
studiohdr_t *pstudiohdr;
mstudioseqdesc_t *pseqdesc;
@ -255,7 +255,7 @@ float CL_GetStudioEstimatedFrame( cl_entity_t *ent ) @@ -255,7 +255,7 @@ float CL_GetStudioEstimatedFrame( cl_entity_t *ent )
{
sequence = bound( 0, ent->curstate.sequence, pstudiohdr->numseq - 1 );
pseqdesc = (mstudioseqdesc_t *)((byte *)pstudiohdr + pstudiohdr->seqindex) + sequence;
return ref.dllFuncs.R_StudioEstimateFrame( ent, pseqdesc );
return ref.dllFuncs.R_StudioEstimateFrame( ent, pseqdesc, cl.time );
}
}

Loading…
Cancel
Save