From 6522cec9699cdbec88c47eedddab691cf1e4f580 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Zieli=C5=84ski?= Date: Mon, 24 Jul 2023 08:44:37 +0200 Subject: [PATCH] Just the notes --- client/lobby/RandomMapTab.cpp | 4 ++++ lib/rmg/CMapGenOptions.cpp | 1 + 2 files changed, 5 insertions(+) diff --git a/client/lobby/RandomMapTab.cpp b/client/lobby/RandomMapTab.cpp index 1d63c04d2..e3c1239b2 100644 --- a/client/lobby/RandomMapTab.cpp +++ b/client/lobby/RandomMapTab.cpp @@ -160,6 +160,10 @@ void RandomMapTab::updateMapInfoByHost() mapInfo->mapHeader->howManyTeams = playersToGen; + //FIXME: Assign all human-controlled colors in first place + //TODO: Where are human / CPU players toggled in player configuration? + //TODO: Get human player count + std::set occupiedTeams; for(int i = 0; i < playersToGen; ++i) { diff --git a/lib/rmg/CMapGenOptions.cpp b/lib/rmg/CMapGenOptions.cpp index 3201943eb..04f3816af 100644 --- a/lib/rmg/CMapGenOptions.cpp +++ b/lib/rmg/CMapGenOptions.cpp @@ -171,6 +171,7 @@ void CMapGenOptions::resetPlayersMap() else if((getPlayerCount() != RANDOM_SIZE && color >= realPlayersCnt) || (compOnlyPlayerCount != RANDOM_SIZE && color >= (PlayerColor::PLAYER_LIMIT_I-compOnlyPlayerCount))) { + //FIXME: Allow humans to choose any color, even from the end of teh list playerType = EPlayerType::COMP_ONLY; } player.setPlayerType(playerType);