refactor: move wave length calculation to util class

This commit is contained in:
jeefo 2023-08-22 09:45:29 +03:00
commit 5fddfed5ce
No known key found for this signature in database
GPG key ID: 927BCA0779BEA8ED
8 changed files with 87 additions and 86 deletions

View file

@ -582,7 +582,7 @@ void BotManager::serverFill (int selection, int personality, int difficulty, int
selection = 5;
}
constexpr char teams[6][12] = { "", {"Terrorists"}, {"CTs"}, "", "", {"Random"}, };
auto toAdd = numToAdd == -1 ? maxClients - (getHumansCount () + getBotCount ()) : numToAdd;
const auto toAdd = numToAdd == -1 ? maxClients - (getHumansCount () + getBotCount ()) : numToAdd;
for (int i = 0; i <= toAdd; ++i) {
addbot ("", difficulty, personality, selection, -1, true);