Tomasz Zieliński 2 rokov pred
rodič
commit
6522cec969

+ 4 - 0
client/lobby/RandomMapTab.cpp

@@ -160,6 +160,10 @@ void RandomMapTab::updateMapInfoByHost()
 
 	mapInfo->mapHeader->howManyTeams = playersToGen;
 
+	//FIXME: Assign all human-controlled colors in first place
+	//TODO: Where are human / CPU players toggled in player configuration?
+	//TODO: Get human player count
+
 	std::set<TeamID> occupiedTeams;
 	for(int i = 0; i < playersToGen; ++i)
 	{

+ 1 - 0
lib/rmg/CMapGenOptions.cpp

@@ -171,6 +171,7 @@ void CMapGenOptions::resetPlayersMap()
 		else if((getPlayerCount() != RANDOM_SIZE && color >= realPlayersCnt)
 		   || (compOnlyPlayerCount != RANDOM_SIZE && color >= (PlayerColor::PLAYER_LIMIT_I-compOnlyPlayerCount)))
 		{
+			//FIXME: Allow humans to choose any color, even from the end of teh list
 			playerType = EPlayerType::COMP_ONLY;
 		}
 		player.setPlayerType(playerType);