From f563712782b0c346b59ac6731372f0bd7570e284 Mon Sep 17 00:00:00 2001 From: Alexander Shishkin Date: Sun, 28 Oct 2018 16:36:11 +0100 Subject: [PATCH] fix formatting Co-Authored-By: godric3 --- lib/rmg/CMapGenOptions.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/rmg/CMapGenOptions.cpp b/lib/rmg/CMapGenOptions.cpp index c52eedef1..4de95e678 100644 --- a/lib/rmg/CMapGenOptions.cpp +++ b/lib/rmg/CMapGenOptions.cpp @@ -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;