mgr: fix leader selection stuff (fix #624)

Co-Authored-By: Max <161382234+dyspose@users.noreply.github.com>
This commit is contained in:
jeefo 2025-08-04 16:53:26 +03:00
commit cf9d0cc84f
No known key found for this signature in database
GPG key ID: D696786B81B667C8
2 changed files with 16 additions and 14 deletions

View file

@ -464,7 +464,7 @@ void BotManager::maintainLeaders () {
}
// select leader each team somewhere in round start
if (m_timeRoundStart + 5.0f > game.time () && m_timeRoundStart + 10.0f < game.time ()) {
if (m_timeRoundStart + rg (1.5f, 3.0f) < game.time ()) {
for (int team = 0; team < kGameTeamNum; ++team) {
selectLeaders (team, false);
}