fix stage counter being wrong for early ScreenSelectMusic code

This commit is contained in:
Glenn Maynard
2004-10-06 01:38:23 +00:00
parent ccaa552c24
commit a10764d6a4
+5
View File
@@ -1392,6 +1392,11 @@ void ScreenEvaluation::HandleScreenMessage( const ScreenMessage SM )
break;
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 )
SCREENMAN->SetNewScreen( NEXT_SCREEN );
else