From afe1f892eb3166a0d4afd5ac54263bb51cad0007 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Fri, 11 Mar 2005 03:33:41 +0000 Subject: [PATCH] cleanup play "PauseCommand" and "UnpauseCommand" --- stepmania/src/ScreenGameplay.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/stepmania/src/ScreenGameplay.cpp b/stepmania/src/ScreenGameplay.cpp index eabba0773b..dd55d97873 100644 --- a/stepmania/src/ScreenGameplay.cpp +++ b/stepmania/src/ScreenGameplay.cpp @@ -1143,6 +1143,10 @@ void ScreenGameplay::PauseGame( bool bPause ) m_bPaused = bPause; m_pSoundMusic->Pause( bPause ); + if( bPause ) + this->PlayCommand( "Pause" ); + else + this->PlayCommand( "Unpause" ); } // play assist ticks @@ -2420,13 +2424,11 @@ void ScreenGameplay::TweenOnScreen() ON_COMMAND( m_DifficultyIcon[p] ); ON_COMMAND( m_DifficultyMeter[p] ); } + m_Overlay->PlayCommand("On"); if (m_ShowScoreboard) FOREACH_NSScoreBoardColumn( sc ) ON_COMMAND( m_Scoreboard[sc] ); - - if( m_Overlay.IsLoaded() ) - m_Overlay->PlayCommand("On"); } void ScreenGameplay::TweenOffScreen()