Merge branch 'develop' of https://github.com/h1-mod/h1-mod into develop

This commit is contained in:
Federico Cecchetto 2022-03-06 03:17:06 +01:00
commit 21d59049a4

View File

@ -91,7 +91,9 @@ namespace bots
num_bots = atoi(params.get(1));
}
for (auto i = 0; i < (num_bots > *game::mp::svs_numclients ? *game::mp::svs_numclients : num_bots); i++)
num_bots = std::min(num_bots, *game::mp::svs_numclients);;
for (auto i = 0; i < num_bots; i++)
{
scheduler::once(add_bot, scheduler::pipeline::server, 100ms * i);
}