From a7ed1f84c9c6a72701b352f86f128be4e73dd4e1 Mon Sep 17 00:00:00 2001 From: Horiuchi Date: Mon, 1 Dec 2025 02:33:59 -0500 Subject: [PATCH] tf: Show enemy classes on scoreboard during game over --- src/game/client/tf/vgui/tf_clientscoreboard.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/game/client/tf/vgui/tf_clientscoreboard.cpp b/src/game/client/tf/vgui/tf_clientscoreboard.cpp index 7c2453fb887..917dd9d5c17 100644 --- a/src/game/client/tf/vgui/tf_clientscoreboard.cpp +++ b/src/game/client/tf/vgui/tf_clientscoreboard.cpp @@ -1464,8 +1464,8 @@ void CTFClientScoreBoardDialog::UpdatePlayerList() } } - // can only see class information if we're on the same team - if ( !AreEnemyTeams( g_PR->GetTeam( playerIndex ), localteam ) && !( localteam == TEAM_UNASSIGNED ) ) + // can only see class information if we're on the same team, unless the game is over + if ( ( !AreEnemyTeams( g_PR->GetTeam( playerIndex ), localteam ) && !( localteam == TEAM_UNASSIGNED ) ) || ( TFGameRules() && TFGameRules()->State_Get() == GR_STATE_GAME_OVER ) ) { // class name if ( g_PR->IsConnected( playerIndex ) ) @@ -1978,7 +1978,7 @@ void CTFClientScoreBoardDialog::UpdatePlayerDetails() int iClass = pSelectedPlayer->m_Shared.GetDesiredPlayerClassIndex(); int iTeam = pSelectedPlayer->GetTeamNumber(); - if ( ( pLocalPlayer->InSameTeam( pSelectedPlayer ) || pLocalPlayer->GetTeamNumber() < FIRST_GAME_TEAM ) && + if ( ( pLocalPlayer->InSameTeam( pSelectedPlayer ) || pLocalPlayer->GetTeamNumber() < FIRST_GAME_TEAM || ( TFGameRules() && TFGameRules()->State_Get() == GR_STATE_GAME_OVER ) ) && iTeam >= FIRST_GAME_TEAM && iClass >= TF_FIRST_NORMAL_CLASS && iClass <= TF_LAST_NORMAL_CLASS ) { if ( cl_hud_playerclass_use_playermodel.GetBool() )