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:
Thad Ward
2003-08-25 00:45:12 +00:00
parent d834608f0d
commit cf23c9c14c
4 changed files with 27 additions and 17 deletions
+6
View File
@@ -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