push ScreenSaveSync instead of making it a separate screen. Simplifies branching.

This commit is contained in:
Chris Danford
2006-02-04 20:14:04 +00:00
parent 2500f55e91
commit 8d584de037
7 changed files with 41 additions and 51 deletions
+6 -4
View File
@@ -11,7 +11,8 @@ void ScreenGameplaySyncMachine::Init()
{
GAMESTATE->m_PlayMode.Set( PLAY_MODE_REGULAR );
GAMESTATE->m_pCurStyle.Set( GAMEMAN->GetHowToPlayStyleForGame(GAMESTATE->m_pCurGame) );
GAMESTATE->ResetOriginalSyncData();
SMLoader ld;
RString sFile = THEME->GetPathO("ScreenGameplaySyncMachine","music.sm");
ld.LoadFromSMFile( sFile, m_Song );
@@ -42,7 +43,10 @@ void ScreenGameplaySyncMachine::HandleScreenMessage( const ScreenMessage SM )
ResetAndRestartCurrentSong();
return; // handled
}
else if( SM == SM_GoToPrevScreen )
ScreenGameplayNormal::HandleScreenMessage( SM );
if( SM == SM_GoToPrevScreen )
{
GAMESTATE->m_pCurSong.Set( NULL );
}
@@ -50,8 +54,6 @@ void ScreenGameplaySyncMachine::HandleScreenMessage( const ScreenMessage SM )
{
GAMESTATE->m_pCurSong.Set( NULL );
}
ScreenGameplayNormal::HandleScreenMessage( SM );
}
void ScreenGameplaySyncMachine::ResetAndRestartCurrentSong()