1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-24 03:47:18 +02:00

max player count update

This commit is contained in:
mikeiit 2024-11-24 17:07:07 -08:00
parent a4417f3fc5
commit f842b5ad91

View File

@ -124,17 +124,7 @@ si8 CMapGenOptions::getMinPlayersCount(bool withTemplateLimit) const
si8 CMapGenOptions::getMaxPlayersCount(bool withTemplateLimit) const
{
// Max number of players possible with current settings
auto totalPlayers = 0;
si8 humans = getHumanOrCpuPlayerCount();
si8 cpus = getCompOnlyPlayerCount();
if (humans == RANDOM_SIZE || cpus == RANDOM_SIZE)
{
totalPlayers = PlayerColor::PLAYER_LIMIT_I;
}
else
{
totalPlayers = humans + cpus;
}
auto totalPlayers = PlayerColor::PLAYER_LIMIT_I;
if (withTemplateLimit && mapTemplate)
{