| Old revision #pixwxtrxo | New revision #prizp7egg | ||
|---|---|---|---|
| 1 | /* Count number of AI companies to start. */ | ||
| 2 | uint num_to_start = 0; | ||
| 1 | do { | 3 | do { |
| 2 | 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; |
| 3 | 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; |
| 4 | } while (_settings_game.difficulty.max_no_competitors - ++num_to_start > 0 && AI::GetStartNextTime(num_to_start) == 0); | 6 | num_to_start++; |
| 7 | } while (AI::GetStartNextTime(num_to_start) == 0); | ||