Skip to content

Commit

Permalink
engine: client: adapt to RefAPI 4 changes. Fix interpolation issue af…
Browse files Browse the repository at this point in the history
…ter reloading a save
  • Loading branch information
a1batross committed Mar 28, 2023
1 parent 67903b5 commit 4b5ee87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions engine/client/cl_frame.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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 );
}
}

Expand Down

0 comments on commit 4b5ee87

Please sign in to comment.