Skip to content

Commit 2d13b53

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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 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 ) )

0 commit comments

Comments
 (0)