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:
@@ -107,8 +107,8 @@ void GameState::Reset()
|
||||
|
||||
for( p=0; p<NUM_PLAYERS; p++ )
|
||||
{
|
||||
if( PREFSMAN->m_bShowDancingCharacters && m_pCharacters.size() )
|
||||
m_pCurCharacters[p] = m_pCharacters[rand()%m_pCharacters.size()];
|
||||
if( PREFSMAN->m_bShowDancingCharacters )
|
||||
m_pCurCharacters[p] = GetRandomCharacter();
|
||||
else
|
||||
m_pCurCharacters[p] = NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user