hack should no longer be needed, because Screen:Init() is split out and

we can call FinishStage in SSMusic first
This commit is contained in:
Glenn Maynard
2005-07-12 07:11:01 +00:00
parent 39bdc32e70
commit 45d8fb80ef
+1 -6
View File
@@ -1351,12 +1351,7 @@ void ScreenEvaluation::HandleScreenMessage( const ScreenMessage SM )
case stage:
if( m_bTryExtraStage || !(GAMESTATE->IsFinalStage() || GAMESTATE->IsExtraStage() || GAMESTATE->IsExtraStage2() ) )
{
/* Finish the stage before moving on, so the stage counter will be correct
* for ScreenSelectMusic code which is called before the ctor. Grab NEXT_SCREEN
* first, NEXT_SCREEN is a Lua script that depends on the stage counter. */
CString sNextScreen = NEXT_SCREEN;
GAMESTATE->FinishStage();
SCREENMAN->SetNewScreen( sNextScreen );
SCREENMAN->SetNewScreen( NEXT_SCREEN );
break;
}