mirror of
https://github.com/ValveSoftware/source-sdk-2013.git
synced 2025-04-09 11:31:23 +00:00
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:
parent
0565403b15
commit
3e973ed867
1 changed files with 7 additions and 1 deletions
|
@ -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 )
|
||||
|
|
Loading…
Reference in a new issue