if (_next_competitor_start == 0) { _next_competitor_start = max(1, AI::GetStartNextTime() * DAY_TICKS); } if (--_next_competitor_start == 0) { do { if (AI::CanStartNew() && _game_mode != GM_MENU) { MaybeStartNewCompany(); } } while (AI::GetStartNextTime() == 0); }