From df4a7e3c9d9fbdd54ab5973a24fd4ede58966ada Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Fri, 11 Mar 2005 04:12:48 +0000 Subject: [PATCH] no pause in demo and once tweening out --- stepmania/src/ScreenGameplay.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/stepmania/src/ScreenGameplay.cpp b/stepmania/src/ScreenGameplay.cpp index 81ab4d4a72..9848812b55 100644 --- a/stepmania/src/ScreenGameplay.cpp +++ b/stepmania/src/ScreenGameplay.cpp @@ -1141,6 +1141,10 @@ void ScreenGameplay::PauseGame( bool bPause ) return; } + /* Don't pause if we're already tweening out. */ + if( bPause && m_DancingState == STATE_OUTRO ) + return; + m_bPaused = bPause; m_pSoundMusic->Pause( bPause ); if( bPause ) @@ -2407,6 +2411,10 @@ void ScreenGameplay::HandleScreenMessage( const ScreenMessage SM ) break; case SM_Pause: + /* Ignore SM_Pause when in demonstration. */ + if( GAMESTATE->m_bDemonstrationOrJukebox ) + return; + if( !m_bPaused ) PauseGame( true ); break;