@@ -688,7 +688,7 @@ void C_BasePlayer::CheckForLocalPlayer( int nSplitScreenSlot )
688688 if ( g_nKillCamMode )
689689 iLocalPlayerIndex = g_nKillCamTarget1;
690690
691- if ( iLocalPlayerIndex == index )
691+ if ( iLocalPlayerIndex == m_index )
692692 {
693693 Assert ( s_pLocalPlayer[ nSplitScreenSlot ] == NULL );
694694 s_pLocalPlayer[ nSplitScreenSlot ] = this ;
@@ -737,7 +737,7 @@ void C_BasePlayer::PostDataUpdate( DataUpdateType_t updateType )
737737 FOR_EACH_VALID_SPLITSCREEN_PLAYER ( i )
738738 {
739739 int nIndex = engine->GetSplitScreenPlayer ( i );
740- if ( nIndex == index )
740+ if ( nIndex == m_index )
741741 {
742742 nSlot = i;
743743 break ;
@@ -1181,7 +1181,7 @@ void C_BasePlayer::UpdateFlashlight()
11811181
11821182 if ( pFlashlightPlayer )
11831183 {
1184- FlashlightEffectManager ().SetEntityIndex ( pFlashlightPlayer->index );
1184+ FlashlightEffectManager ().SetEntityIndex ( pFlashlightPlayer->m_index );
11851185 }
11861186
11871187 // The dim light is the flashlight.
@@ -1194,12 +1194,12 @@ void C_BasePlayer::UpdateFlashlight()
11941194 // Turned on the headlight; create it.
11951195 if ( pszTextureName )
11961196 {
1197- FlashlightEffectManager ().TurnOnFlashlight ( pFlashlightPlayer->index , pszTextureName, pFlashlightPlayer->GetFlashlightFOV (),
1197+ FlashlightEffectManager ().TurnOnFlashlight ( pFlashlightPlayer->m_index , pszTextureName, pFlashlightPlayer->GetFlashlightFOV (),
11981198 pFlashlightPlayer->GetFlashlightFarZ (), pFlashlightPlayer->GetFlashlightLinearAtten () );
11991199 }
12001200 else
12011201 {
1202- FlashlightEffectManager ().TurnOnFlashlight ( pFlashlightPlayer->index );
1202+ FlashlightEffectManager ().TurnOnFlashlight ( pFlashlightPlayer->m_index );
12031203 }
12041204 m_bFlashlightEnabled[ iSsPlayer ] = true ;
12051205 }
0 commit comments