From 0f8d41e7edd9423ebbfe319589985888b862a593 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 8 Mar 2004 04:30:57 +0000 Subject: [PATCH] fix no announcers in demonstration --- stepmania/src/ScreenGameplay.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/stepmania/src/ScreenGameplay.cpp b/stepmania/src/ScreenGameplay.cpp index 22e6063bc7..f739e7912a 100644 --- a/stepmania/src/ScreenGameplay.cpp +++ b/stepmania/src/ScreenGameplay.cpp @@ -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;