Explorar o código

fix formatting

Co-Authored-By: godric3 <[email protected]>
Alexander Shishkin %!s(int64=7) %!d(string=hai) anos
pai
achega
f563712782
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      lib/rmg/CMapGenOptions.cpp

+ 2 - 1
lib/rmg/CMapGenOptions.cpp

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