fix draw order
This commit is contained in:
Glenn Maynard
2004-05-08 05:47:37 +00:00
parent 2d53c49f11
commit a176ba50c7
+4 -5
View File
@@ -41,12 +41,9 @@ ScreenInstructions::ScreenInstructions( CString sName ) : ScreenWithMenuElements
if( GAMESTATE->m_PlayMode == PLAY_MODE_ARCADE ) if( GAMESTATE->m_PlayMode == PLAY_MODE_ARCADE )
{ {
Difficulty easiestDifficulty = (Difficulty)(NUM_DIFFICULTIES-1); Difficulty easiestDifficulty = (Difficulty)(NUM_DIFFICULTIES-1);
for( int p=0; p<NUM_PLAYERS; p++ ) FOREACH_HumanPlayer(p)
{
if( !GAMESTATE->IsHumanPlayer(p) )
continue;
easiestDifficulty = min( easiestDifficulty, GAMESTATE->m_PreferredDifficulty[p] ); easiestDifficulty = min( easiestDifficulty, GAMESTATE->m_PreferredDifficulty[p] );
}
if( easiestDifficulty > DIFFICULTY_EASY ) if( easiestDifficulty > DIFFICULTY_EASY )
{ {
HandleScreenMessage( SM_GoToNextScreen ); HandleScreenMessage( SM_GoToNextScreen );
@@ -69,6 +66,8 @@ ScreenInstructions::ScreenInstructions( CString sName ) : ScreenWithMenuElements
m_sprHowToPlay.BeginTweening( 0.6f, Actor::TWEEN_DECELERATE ); m_sprHowToPlay.BeginTweening( 0.6f, Actor::TWEEN_DECELERATE );
m_sprHowToPlay.SetX( CENTER_X ); m_sprHowToPlay.SetX( CENTER_X );
this->SortByDrawOrder();
SOUND->PlayMusic( THEME->GetPathToS("ScreenInstructions music") ); SOUND->PlayMusic( THEME->GetPathToS("ScreenInstructions music") );
} }