mirror of
https://github.com/XLabsProject/s1x-client.git
synced 2023-08-02 15:02:12 +02:00
Merge pull request #325 from diamante0018/develop
[bots] Replace obscure ternary operator with std::min
This commit is contained in:
commit
815786e3bf
@ -122,7 +122,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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user