fix no announcers in demonstration

This commit is contained in:
Glenn Maynard
2004-03-08 04:30:57 +00:00
parent 4bdc608b1c
commit 0f8d41e7ed
+4
View File
@@ -1084,6 +1084,10 @@ void ScreenGameplay::PlayAnnouncer( CString type, float fSeconds )
if( GAMESTATE->m_fOpponentHealthPercent == 0 )
return; // Shut the announcer up
/* Don't play in demonstration. */
if( GAMESTATE->m_bDemonstrationOrJukebox )
return;
/* Don't play before the first beat, or after we're finished. */
if( m_DancingState != STATE_DANCING )
return;