瀏覽代碼

One more fix for options

ArseniyShestakov 10 年之前
父節點
當前提交
745ab7c7df
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      client/CPreGame.cpp

+ 2 - 1
client/CPreGame.cpp

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