21 May 2019
This commit is contained in:
parent
e20c48d11b
commit
f696426239
|
@ -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
|
|
@ -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 );
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Reference in New Issue