1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-12 10:03:53 +02:00

Merge pull request #4981 from mikeiit/random_map_player_count

Random map gen com only player count fix
This commit is contained in:
Ivan Savenko 2024-11-27 16:41:18 +02:00 committed by GitHub
commit fe2f765322
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -263,7 +263,7 @@ void RandomMapTab::setMapGenOptions(std::shared_ptr<CMapGenOptions> opts)
humanCountAllowed = tmpl->getHumanPlayers().getNumbers(); // Unused now?
}
si8 playerLimit = opts->getMaxPlayersCount();
si8 playerLimit = opts->getPlayerLimit();
si8 humanOrCpuPlayerCount = opts->getHumanOrCpuPlayerCount();
si8 compOnlyPlayersCount = opts->getCompOnlyPlayerCount();