Replace obscure ternary operator
by https://github.com/diamante0018 from https://github.com/XLabsProject/s1x-client
This commit is contained in:
parent
1816ca1b61
commit
f9ad7b3ed7
@ -91,7 +91,9 @@ namespace bots
|
|||||||
num_bots = atoi(params.get(1));
|
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);
|
scheduler::once(add_bot, scheduler::pipeline::server, 100ms * i);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user