don't load battle components unless PlayMode is battle

This commit is contained in:
Chris Danford
2003-04-07 23:06:33 +00:00
parent 14cbdd2ce7
commit 145cc4eea4
4 changed files with 32 additions and 18 deletions
+3 -2
View File
@@ -59,7 +59,7 @@ ScreenSelectCharacter::ScreenSelectCharacter()
{
m_iSelectedCharacter[p] = 0;
m_iSelectedLevelIndex[p] = 0;
if( GAMESTATE->IsPlayerEnabled(p) )
if( GAMESTATE->IsHumanPlayer(p) )
m_SelectionRow[p] = CHOOSING_HUMAN_CHARACTER;
}
@@ -342,7 +342,8 @@ void ScreenSelectCharacter::MenuStart( PlayerNumber pn )
bool bAllAreFinished = true;
for( int p=0; p<NUM_PLAYERS; p++ )
bAllAreFinished &= (m_SelectionRow[p] == FINISHED_CHOOSING);
if( GAMESTATE->IsHumanPlayer(p) )
bAllAreFinished &= (m_SelectionRow[p] == FINISHED_CHOOSING);
if( bAllAreFinished )
{