fix stage counter being wrong for early ScreenSelectMusic code
This commit is contained in:
@@ -1392,6 +1392,11 @@ void ScreenEvaluation::HandleScreenMessage( const ScreenMessage SM )
|
|||||||
break;
|
break;
|
||||||
case SM_GoToNextScreen:
|
case SM_GoToNextScreen:
|
||||||
{
|
{
|
||||||
|
/* Hack: finish the stage before moving on. This will increment the stage
|
||||||
|
* counter. If we don't do this, the stage counter will be wrong for
|
||||||
|
* ScreenSelectMusic code which is called before the ctor. */
|
||||||
|
GAMESTATE->FinishStage();
|
||||||
|
|
||||||
if( PREFSMAN->m_bEventMode )
|
if( PREFSMAN->m_bEventMode )
|
||||||
SCREENMAN->SetNewScreen( NEXT_SCREEN );
|
SCREENMAN->SetNewScreen( NEXT_SCREEN );
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user