when a 2nd player joins, remove double steps from the list. They're no longer playable with 2 players joined.

This commit is contained in:
Chris Danford
2007-03-06 08:06:26 +00:00
parent 8a773bfab8
commit 8cbbc48523
7 changed files with 92 additions and 58 deletions
+6 -4
View File
@@ -2340,21 +2340,23 @@ void GameManager::GetCompatibleStyles( const Game *pGame, int iNumPlayers, vecto
{
FOREACH_ENUM( StyleType, styleType )
{
int iNumPlayersRequired;
switch( styleType )
{
DEFAULT_FAIL( styleType );
case StyleType_OnePlayerOneSide:
case StyleType_OnePlayerTwoSides:
if( iNumPlayers != 1 )
continue;
iNumPlayersRequired = 1;
break;
case StyleType_TwoPlayersTwoSides:
case StyleType_TwoPlayersSharedSides:
if( iNumPlayers != 2 )
continue;
iNumPlayersRequired = 2;
break;
}
if( iNumPlayers != iNumPlayersRequired )
continue;
for( unsigned s=0; s<NUM_STYLES; s++ )
{
const Style* style = &g_Styles[s];