no pause in demo and once tweening out
This commit is contained in:
@@ -1141,6 +1141,10 @@ void ScreenGameplay::PauseGame( bool bPause )
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Don't pause if we're already tweening out. */
|
||||||
|
if( bPause && m_DancingState == STATE_OUTRO )
|
||||||
|
return;
|
||||||
|
|
||||||
m_bPaused = bPause;
|
m_bPaused = bPause;
|
||||||
m_pSoundMusic->Pause( bPause );
|
m_pSoundMusic->Pause( bPause );
|
||||||
if( bPause )
|
if( bPause )
|
||||||
@@ -2407,6 +2411,10 @@ void ScreenGameplay::HandleScreenMessage( const ScreenMessage SM )
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case SM_Pause:
|
case SM_Pause:
|
||||||
|
/* Ignore SM_Pause when in demonstration. */
|
||||||
|
if( GAMESTATE->m_bDemonstrationOrJukebox )
|
||||||
|
return;
|
||||||
|
|
||||||
if( !m_bPaused )
|
if( !m_bPaused )
|
||||||
PauseGame( true );
|
PauseGame( true );
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user