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
+2 -2
View File
@@ -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;
}