Loading

Revision differences

Old revision #ptdw9hrs9New revision #pyqgli0qr
3    do {  3    do {  
4        if (_networking && num_companies + num_to_start >= _settings_client.network.max_companies) break;  4        if (_networking && num_companies + num_to_start >= _settings_client.network.max_companies) break;  
5        if (num_ais + num_to_start >= (uint)_settings_game.difficulty.max_no_competitors) break;  5        if (num_ais + num_to_start >= (uint)_settings_game.difficulty.max_no_competitors) break;  
6    } while ((!_networking || num_to_start < _settings_client.network.max_companies) &&  6        num_to_start++;
7            num_to_start < (uint)_settings_game.difficulty.max_no_competitors && AI::GetStartNextTime(num_to_start) == 0); 7    } while (AI::GetStartNextTime(num_to_start) == 0);
   8
   9    uint num_to_start_for = 0;
   10    for (;; ++num_to_start_for) {
   11        if (AI::GetStartNextTime(num_to_start_for) == 0) {
   12            if (_networking && num_companies + num_to_start_for >= _settings_client.network.max_companies) break;
   13            if (num_ais + num_to_start_for >= (uint)_settings_game.difficulty.max_no_competitors) break;
   14        } else {
   15            break;
   16        }
   17    }
   18    assert(num_to_start == num_to_start_for);