File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1464,8 +1464,8 @@ void CTFClientScoreBoardDialog::UpdatePlayerList()
14641464 }
14651465 }
14661466
1467- // can only see class information if we're on the same team
1468- if ( !AreEnemyTeams ( g_PR->GetTeam ( playerIndex ), localteam ) && !( localteam == TEAM_UNASSIGNED ) )
1467+ // can only see class information if we're on the same team, unless the game is over
1468+ if ( ( !AreEnemyTeams ( g_PR->GetTeam ( playerIndex ), localteam ) && !( localteam == TEAM_UNASSIGNED ) ) || ( TFGameRules () && TFGameRules ()-> State_Get () == GR_STATE_GAME_OVER ) )
14691469 {
14701470 // class name
14711471 if ( g_PR->IsConnected ( playerIndex ) )
@@ -1978,7 +1978,7 @@ void CTFClientScoreBoardDialog::UpdatePlayerDetails()
19781978
19791979 int iClass = pSelectedPlayer->m_Shared .GetDesiredPlayerClassIndex ();
19801980 int iTeam = pSelectedPlayer->GetTeamNumber ();
1981- if ( ( pLocalPlayer->InSameTeam ( pSelectedPlayer ) || pLocalPlayer->GetTeamNumber () < FIRST_GAME_TEAM ) &&
1981+ if ( ( pLocalPlayer->InSameTeam ( pSelectedPlayer ) || pLocalPlayer->GetTeamNumber () < FIRST_GAME_TEAM || ( TFGameRules ( ) && TFGameRules ()-> State_Get () == GR_STATE_GAME_OVER ) ) &&
19821982 iTeam >= FIRST_GAME_TEAM && iClass >= TF_FIRST_NORMAL_CLASS && iClass <= TF_LAST_NORMAL_CLASS )
19831983 {
19841984 if ( cl_hud_playerclass_use_playermodel.GetBool () )
You can’t perform that action at this time.
0 commit comments