Skip to content

Commit a7ed1f8

Browse files
committed
tf: Show enemy classes on scoreboard during game over
1 parent 39f6dde commit a7ed1f8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/game/client/tf/vgui/tf_clientscoreboard.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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() )

0 commit comments

Comments
 (0)