1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-12 02:28:11 +02:00

One more fix for options

This commit is contained in:
ArseniyShestakov 2015-11-25 07:40:35 +03:00
parent 2276af70dc
commit 745ab7c7df

View File

@ -1885,7 +1885,8 @@ void CRandomMapTab::updateMapInfo()
PlayerInfo player;
player.isFactionRandom = true;
player.canComputerPlay = true;
if(i >= mapGenOptions.getHumanOnlyPlayerCount())
if(mapGenOptions.getCompOnlyPlayerCount() != CMapGenOptions::RANDOM_SIZE &&
i >= mapGenOptions.getHumanOnlyPlayerCount())
{
player.canHumanPlay = false;
}