mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
ref: soft: cleanup unused functions
This commit is contained in:
@@ -667,35 +667,6 @@ float R_StudioEstimateInterpolant( cl_entity_t *e )
|
||||
return dadt;
|
||||
}
|
||||
|
||||
/*
|
||||
====================
|
||||
CL_GetSequenceDuration
|
||||
|
||||
====================
|
||||
*/
|
||||
float CL_GetSequenceDuration( cl_entity_t *ent, int sequence )
|
||||
{
|
||||
studiohdr_t *pstudiohdr;
|
||||
mstudioseqdesc_t *pseqdesc;
|
||||
|
||||
if( ent->model != NULL && ent->model->type == mod_studio )
|
||||
{
|
||||
pstudiohdr = (studiohdr_t *)gEngfuncs.Mod_Extradata( mod_studio, ent->model );
|
||||
|
||||
if( pstudiohdr )
|
||||
{
|
||||
sequence = bound( 0, sequence, pstudiohdr->numseq - 1 );
|
||||
pseqdesc = (mstudioseqdesc_t *)((byte *)pstudiohdr + pstudiohdr->seqindex) + sequence;
|
||||
|
||||
if( pseqdesc->numframes > 1 && pseqdesc->fps > 0 )
|
||||
return (float)pseqdesc->numframes / (float)pseqdesc->fps;
|
||||
}
|
||||
}
|
||||
|
||||
return 0.1f;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
====================
|
||||
StudioFxTransform
|
||||
|
||||
Reference in New Issue
Block a user