no pause in demo and once tweening out

This commit is contained in:
Glenn Maynard
2005-03-11 04:12:48 +00:00
parent f61cce45f5
commit df4a7e3c9d
+8
View File
@@ -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;