21 May 2019

This commit is contained in:
g-cont 2019-05-21 00:00:00 +03:00 committed by Alibek Omarov
parent e20c48d11b
commit f696426239
2 changed files with 6 additions and 0 deletions

View File

@ -263,6 +263,8 @@ typedef struct render_interface_s
void (*R_NewMap)( void );
// clear the render entities before each frame
void (*R_ClearScene)( void );
// shuffle previous & next states for lerping
void (*CL_UpdateLatchedVars)( struct cl_entity_s *e );
} render_interface_t;
#endif//RENDER_API_H

View File

@ -224,6 +224,10 @@ void CL_UpdateLatchedVars( cl_entity_t *ent )
memcpy( ent->latched.prevcontroller, ent->prevstate.controller, sizeof( ent->latched.prevcontroller ));
memcpy( ent->latched.prevblending, ent->prevstate.blending, sizeof( ent->latched.prevblending ));
// update custom latched vars
if( clgame.drawFuncs.CL_UpdateLatchedVars != NULL )
clgame.drawFuncs.CL_UpdateLatchedVars( ent );
}
/*