engine, ref: RefAPI 5. Simplify remap calls

This commit is contained in:
Alibek Omarov
2023-12-05 10:43:28 +03:00
parent 9c66e86be1
commit 26d229c8ca
7 changed files with 94 additions and 96 deletions

View File

@@ -2384,13 +2384,8 @@ R_StudioSetRemapColors
*/
static void R_StudioSetRemapColors( int newTop, int newBottom )
{
gEngfuncs.CL_AllocRemapInfo( RI.currententity, RI.currentmodel, newTop, newBottom );
if( gEngfuncs.CL_GetRemapInfoForEntity( RI.currententity ))
{
gEngfuncs.CL_UpdateRemapInfo( RI.currententity, newTop, newBottom );
if( gEngfuncs.CL_EntitySetRemapColors( RI.currententity, RI.currentmodel, newTop, newBottom ))
m_fDoRemap = true;
}
}
void R_StudioResetPlayerModels( void )