Skip to content

Commit ca832fe

Browse files
committed
Apply anonymous team macros to TF2 game_timer
1 parent 439f793 commit ca832fe

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

src/game/client/mapbase/tf/tf_hud_external_timer.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -277,13 +277,9 @@ void CTFHudExternalTimer::SetTeamBackground( void )
277277
if ( iTeam == TEAM_ANY )
278278
iTeam = GetLocalPlayerTeam();
279279

280-
if ( iTeam == TF_TEAM_RED )
280+
if ( IsValidTFTeam( iTeam ) )
281281
{
282-
m_pTimerBG->SetImage( "../hud/objectives_timepanel_red_bg" );
283-
}
284-
else if ( iTeam == TF_TEAM_BLUE )
285-
{
286-
m_pTimerBG->SetImage( "../hud/objectives_timepanel_blue_bg" );
282+
m_pTimerBG->SetImage( TEAM_STRING_POST( iTeam, "../hud/objectives_timepanel_", "_bg" ) );
287283
}
288284
else
289285
{

0 commit comments

Comments
 (0)