if (AI::CanStartNew() && _game_mode != GM_MENU && --_next_competitor_start == 0) { /* Allow multiple AIs to possibly start in the same tick. */ do { if (!MaybeStartNewCompany()) break; } while (AI::GetStartNextTime() == 0); }