only initialize BeginnerHelper if we have a player who is on beginner and the option to show it is on.

This commit is contained in:
Thad Ward
2003-08-24 23:18:20 +00:00
parent 18f45fd799
commit 0d74c0d864
+12 -8
View File
@@ -776,15 +776,19 @@ void ScreenGameplay::LoadNextSong()
/* Set up song-specific graphics. */ /* Set up song-specific graphics. */
/* TODO: fall back on m_Background if nobody is on beginner. */ bool UseBeginnerhelper = false;
if( PREFSMAN->m_bShowBeginnerHelper ) // Beginner steps are always the same on both players.. Just get the # of 1 player that's using the Beginner steps, and go on.
{ m_iPOB = 0;
// Beginner steps are always the same on both players.. Just get the # of 1 player that's using the Beginner steps, and go on. for( int pb=0; pb<NUM_PLAYERS; pb++ )
m_iPOB = 0; if( GAMESTATE->IsPlayerEnabled(pb) && GAMESTATE->m_PreferredDifficulty[pb] == DIFFICULTY_BEGINNER )
for( int pb=0; pb<NUM_PLAYERS; pb++ ) {
if( GAMESTATE->IsPlayerEnabled(pb) && GAMESTATE->m_PreferredDifficulty[pb] == DIFFICULTY_BEGINNER ) UseBeginnerhelper = true;
m_iPOB = pb; m_iPOB = pb;
}
/* TODO: fall back on m_Background if nobody is on beginner. */
if( PREFSMAN->m_bShowBeginnerHelper && UseBeginnerhelper)
{
m_Background.Unload(); // BeginnerHelper has it's own BG control. m_Background.Unload(); // BeginnerHelper has it's own BG control.
m_Background.StopAnimating(); m_Background.StopAnimating();