simplify
fix draw order
This commit is contained in:
@@ -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") );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user