refactor: move wave length calculation to util class
This commit is contained in:
parent
659db9b063
commit
5fddfed5ce
8 changed files with 87 additions and 86 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue