|
|
@ -3297,7 +3297,7 @@ static int R_StudioDrawPlayer( int flags, entity_state_t *pplayer ) |
|
|
|
|
|
|
|
|
|
|
|
m_nPlayerIndex = pplayer->number - 1; |
|
|
|
m_nPlayerIndex = pplayer->number - 1; |
|
|
|
|
|
|
|
|
|
|
|
if( m_nPlayerIndex < 0 || m_nPlayerIndex >= ENGINE_GET_PARM( PARM_MAX_CLIENTS ) ) |
|
|
|
if( m_nPlayerIndex < 0 || m_nPlayerIndex >= gp_cl->maxclients ) |
|
|
|
return 0; |
|
|
|
return 0; |
|
|
|
|
|
|
|
|
|
|
|
RI.currentmodel = R_StudioSetupPlayerModel( m_nPlayerIndex ); |
|
|
|
RI.currentmodel = R_StudioSetupPlayerModel( m_nPlayerIndex ); |
|
|
@ -3379,7 +3379,7 @@ static int R_StudioDrawPlayer( int flags, entity_state_t *pplayer ) |
|
|
|
RI.currententity->curstate.body = 255; |
|
|
|
RI.currententity->curstate.body = 255; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if( !( !gpGlobals->developer && ENGINE_GET_PARM( PARM_MAX_CLIENTS ) == 1 ) && ( RI.currentmodel == RI.currententity->model )) |
|
|
|
if( !( !gpGlobals->developer && gp_cl->maxclients == 1 ) && ( RI.currentmodel == RI.currententity->model )) |
|
|
|
RI.currententity->curstate.body = 1; // force helmet
|
|
|
|
RI.currententity->curstate.body = 1; // force helmet
|
|
|
|
|
|
|
|
|
|
|
|
lighting.plightvec = dir; |
|
|
|
lighting.plightvec = dir; |
|
|
@ -3442,7 +3442,7 @@ static int R_StudioDrawModel( int flags ) |
|
|
|
int result; |
|
|
|
int result; |
|
|
|
|
|
|
|
|
|
|
|
if( RI.currententity->curstate.renderamt <= 0 || |
|
|
|
if( RI.currententity->curstate.renderamt <= 0 || |
|
|
|
RI.currententity->curstate.renderamt > ENGINE_GET_PARM( PARM_MAX_CLIENTS ) ) |
|
|
|
RI.currententity->curstate.renderamt > gp_cl->maxclients ) |
|
|
|
return 0; |
|
|
|
return 0; |
|
|
|
|
|
|
|
|
|
|
|
// get copy of player
|
|
|
|
// get copy of player
|
|
|
|