1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-30 04:30:42 +02:00

Just the notes

This commit is contained in:
Tomasz Zieliński 2023-07-24 08:44:37 +02:00
parent e8855e20c4
commit 6522cec969
2 changed files with 5 additions and 0 deletions

View File

@ -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)
{

View File

@ -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);