Move all random character selection to a separate function and make everything call that.
Make BeginnerHelper attempt to randomly select a character if one isn't selected.
This commit is contained in:
@@ -99,6 +99,12 @@ void BeginnerHelper::Initialize( int iDancePadType )
|
||||
|
||||
for( int pl=0; pl<NUM_PLAYERS; pl++ ) // Load players
|
||||
{
|
||||
// if there is no character set, try loading a random one.
|
||||
if( GAMESTATE->m_pCurCharacters[pl] == NULL )
|
||||
{
|
||||
GAMESTATE->m_pCurCharacters[pl] = GAMESTATE->GetRandomCharacter();
|
||||
}
|
||||
|
||||
if( GAMESTATE->m_PreferredDifficulty[pl] == DIFFICULTY_BEGINNER && GAMESTATE->m_pCurCharacters[pl] != NULL )
|
||||
{
|
||||
// Load textures
|
||||
|
||||
Reference in New Issue
Block a user