Skip to content

Commit e93d4ff

Browse files
committed
fix flag sounds playing during match summary
1 parent 405c1f9 commit e93d4ff

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/game/shared/tf/entity_capture_flag.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -710,6 +710,10 @@ void CCaptureFlag::UpdateOnRemove( void )
710710
//-----------------------------------------------------------------------------
711711
void CCaptureFlag::PlaySound( IRecipientFilter& filter, const char *pszString, int iTeam /*= TEAM_ANY */ )
712712
{
713+
// don't play capture flag sounds during match summary (e.g, when flag returns on its own)
714+
if ( TFGameRules()->ShowMatchSummary() )
715+
return;
716+
713717
// Note: iTeam parameter is only used for rate-limiting flag sounds based on team, and does not affect
714718
// who the sound is targetted at; the filter parameter is the only thing that will affect who hears this.
715719

0 commit comments

Comments
 (0)