parse for multiselect flag

This commit is contained in:
Chris Danford
2004-01-10 21:36:23 +00:00
parent 6a499d0403
commit 028e5bd6c8
+7 -2
View File
@@ -69,8 +69,13 @@ void ScreenOptionsMaster::SetList( OptionRowData &row, OptionRowHandler &hand, C
row.bOneChoiceForAllPlayers = false;
const int NumCols = atoi( asParts[0] );
if( asParts.size() > 1 )
row.bOneChoiceForAllPlayers = !asParts[1].CompareNoCase("together");
for( int i=0; i<asParts.size(); i++ )
{
if( asParts[i].CompareNoCase("together") == 0 )
row.bOneChoiceForAllPlayers = true;
else if( asParts[i].CompareNoCase("multiselect") == 0 )
row.bMultiSelect = true;
}
for( int col = 0; col < NumCols; ++col )
{