mirror of
https://github.com/vcmi/vcmi.git
synced 2025-02-07 13:08:09 +02:00
Just the notes
This commit is contained in:
parent
e8855e20c4
commit
6522cec969
@ -160,6 +160,10 @@ void RandomMapTab::updateMapInfoByHost()
|
|||||||
|
|
||||||
mapInfo->mapHeader->howManyTeams = playersToGen;
|
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;
|
std::set<TeamID> occupiedTeams;
|
||||||
for(int i = 0; i < playersToGen; ++i)
|
for(int i = 0; i < playersToGen; ++i)
|
||||||
{
|
{
|
||||||
|
@ -171,6 +171,7 @@ void CMapGenOptions::resetPlayersMap()
|
|||||||
else if((getPlayerCount() != RANDOM_SIZE && color >= realPlayersCnt)
|
else if((getPlayerCount() != RANDOM_SIZE && color >= realPlayersCnt)
|
||||||
|| (compOnlyPlayerCount != RANDOM_SIZE && color >= (PlayerColor::PLAYER_LIMIT_I-compOnlyPlayerCount)))
|
|| (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;
|
playerType = EPlayerType::COMP_ONLY;
|
||||||
}
|
}
|
||||||
player.setPlayerType(playerType);
|
player.setPlayerType(playerType);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user