Fix course mode crashing.

This commit is contained in:
Glenn Maynard
2003-09-04 07:21:31 +00:00
parent d7961c86df
commit 9219322406
+10 -7
View File
@@ -69,13 +69,16 @@ Background::Background()
bool bOneOrMoreChars = false;
bool bShowingBeginnerHelper = false;
for( int p=0; p<NUM_PLAYERS; p++ )
if( GAMESTATE->IsHumanPlayer(p) )
{
bOneOrMoreChars = true;
//Disable dancing characters if BH will be showing.
if( (PREFSMAN->m_bShowBeginnerHelper) && BeginnerHelper::CanUse() && (GAMESTATE->m_pCurNotes[p]->GetDifficulty() == DIFFICULTY_BEGINNER ) )
bShowingBeginnerHelper = true;
}
{
if( !GAMESTATE->IsHumanPlayer(p) )
continue;
bOneOrMoreChars = true;
// Disable dancing characters if BH will be showing.
if( PREFSMAN->m_bShowBeginnerHelper && BeginnerHelper::CanUse() &&
GAMESTATE->m_pCurNotes[p] && GAMESTATE->m_pCurNotes[p]->GetDifficulty() == DIFFICULTY_BEGINNER )
bShowingBeginnerHelper = true;
}
if( bOneOrMoreChars && !bShowingBeginnerHelper )
{