1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

fix formatting

Co-Authored-By: godric3 <godric3@users.noreply.github.com>
This commit is contained in:
Alexander Shishkin 2018-10-28 16:36:11 +01:00 committed by GitHub
parent 7ded9dbda8
commit f563712782
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -175,7 +175,8 @@ void CMapGenOptions::resetPlayersMap()
if (getPlayerCount() != RANDOM_SIZE && color < realPlayersCnt)
{
playerType = EPlayerType::HUMAN;
}else if ((getPlayerCount() != RANDOM_SIZE && color >= realPlayersCnt)
}
else if((getPlayerCount() != RANDOM_SIZE && color >= realPlayersCnt)
|| (compOnlyPlayerCount != RANDOM_SIZE && color >= (PlayerColor::PLAYER_LIMIT_I-compOnlyPlayerCount)))
{
playerType = EPlayerType::COMP_ONLY;