game: client: Update MatchStatus HUD visibility each time new round starts

Fixes https://github.com/ValveSoftware/Source-1-Games/issues/2542
This commit is contained in:
SanyaSho 2025-04-03 12:56:17 +03:00
parent 0565403b15
commit 3e973ed867

View file

@ -546,10 +546,16 @@ void CTFHudMatchStatus::OnThink()
//-----------------------------------------------------------------------------
void CTFHudMatchStatus::FireGameEvent( IGameEvent * event )
{
if ( FStrEq( "teamplay_round_start", event->GetName() ) )
{
// Force match status panel to reload scheme
m_bUseMatchHUD = !m_bUseMatchHUD;
}
if ( !ShouldUseMatchHUD() )
return;
if ( FStrEq("teamplay_round_start", event->GetName() ) )
if ( FStrEq( "teamplay_round_start", event->GetName() ) )
{
// Drop the round sign right when the match starts on rounds > 1
if ( TFGameRules()->GetRoundsPlayed() > 0 )