Replace obscure ternary operator

by https://github.com/diamante0018 from https://github.com/XLabsProject/s1x-client
This commit is contained in:
m 2022-03-05 19:37:08 -06:00
parent 1816ca1b61
commit f9ad7b3ed7

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);
}