From: Glenn M. <gma...@us...> - 2005-01-30 03:08:54
|
Update of /cvsroot/stepmania/stepmania/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19630 Modified Files: ScreenGameplay.cpp Log Message: simplify Index: ScreenGameplay.cpp =================================================================== RCS file: /cvsroot/stepmania/stepmania/src/ScreenGameplay.cpp,v retrieving revision 1.598 retrieving revision 1.599 diff -u -d -p -r1.598 -r1.599 --- ScreenGameplay.cpp 30 Jan 2005 03:01:16 -0000 1.598 +++ ScreenGameplay.cpp 30 Jan 2005 03:08:42 -0000 1.599 @@ -78,10 +78,8 @@ const ScreenMessage SM_LoadNextSong = // received while STATE_OUTRO const ScreenMessage SM_SaveChangedBeforeGoingBack = ScreenMessage(SM_User+20); const ScreenMessage SM_GoToScreenAfterBack = ScreenMessage(SM_User+21); -const ScreenMessage SM_GoToStateAfterCleared= ScreenMessage(SM_User+22); const ScreenMessage SM_BeginFailed = ScreenMessage(SM_User+30); -const ScreenMessage SM_GoToScreenAfterFail = ScreenMessage(SM_User+31); // received while STATE_INTRO const ScreenMessage SM_StartHereWeGo = ScreenMessage(SM_User+40); @@ -2199,7 +2197,7 @@ void ScreenGameplay::HandleScreenMessage if( GAMESTATE->HasEarnedExtraStage() ) { TweenOffScreen(); - m_Extra.StartTransitioning( SM_GoToStateAfterCleared ); + m_Extra.StartTransitioning( SM_GoToNextScreen ); SOUND->PlayOnceFromAnnouncer( "gameplay extra" ); } else @@ -2215,16 +2213,16 @@ void ScreenGameplay::HandleScreenMessage switch( winner ) { case PLAYER_INVALID: - m_Draw.StartTransitioning( SM_GoToStateAfterCleared ); + m_Draw.StartTransitioning( SM_GoToNextScreen ); break; default: - m_Win[winner].StartTransitioning( SM_GoToStateAfterCleared ); + m_Win[winner].StartTransitioning( SM_GoToNextScreen ); break; } } break; default: - m_Cleared.StartTransitioning( SM_GoToStateAfterCleared ); + m_Cleared.StartTransitioning( SM_GoToNextScreen ); break; } @@ -2334,12 +2332,11 @@ void ScreenGameplay::HandleScreenMessage SCREENMAN->SetNewScreen( PREV_SCREEN ); break; - case SM_GoToStateAfterCleared: - case SM_GoToScreenAfterFail: + case SM_GoToNextScreen: if( m_bChangedOffsetOrBPM ) { m_bChangedOffsetOrBPM = false; - ShowSavePrompt( SM ); + ShowSavePrompt( SM_GoToNextScreen ); break; } @@ -2359,7 +2356,7 @@ void ScreenGameplay::HandleScreenMessage m_pSoundMusic->StopPlaying(); m_soundAssistTick.StopPlaying(); /* Stop any queued assist ticks. */ TweenOffScreen(); - m_Failed.StartTransitioning( SM_GoToScreenAfterFail ); + m_Failed.StartTransitioning( SM_GoToNextScreen ); // show the survive time if extra stage if( GAMESTATE->IsExtraStage() || GAMESTATE->IsExtraStage2() ) |