Loading

max_no_competitors = 15.p

  1. Index: src/ai/ai_gui.cpp
  2. ===================================================================
  3. --- src/ai/ai_gui.cpp   (revision 27529)
  4. +++ src/ai/ai_gui.cpp   (working copy)
  5. @@ -845,7 +845,7 @@
  6.                 if (widget == WID_AIC_DECREASE) {
  7.                     new_value = max(0, GetGameSettings().difficulty.max_no_competitors - 1);
  8.                 } else {
  9. -                   new_value = min(MAX_COMPANIES - 1, GetGameSettings().difficulty.max_no_competitors + 1);
  10. +                   new_value = min(MAX_COMPANIES, GetGameSettings().difficulty.max_no_competitors + 1);
  11.                 }
  12.                 IConsoleSetSetting("difficulty.max_no_competitors", new_value);
  13.                 this->InvalidateData();
  14. @@ -922,7 +922,7 @@
  15.         if (!gui_scope) return;
  16.  
  17.         this->SetWidgetDisabledState(WID_AIC_DECREASE, GetGameSettings().difficulty.max_no_competitors == 0);
  18. -       this->SetWidgetDisabledState(WID_AIC_INCREASE, GetGameSettings().difficulty.max_no_competitors == MAX_COMPANIES - 1);
  19. +       this->SetWidgetDisabledState(WID_AIC_INCREASE, GetGameSettings().difficulty.max_no_competitors == MAX_COMPANIES);
  20.         this->SetWidgetDisabledState(WID_AIC_CHANGE, (this->selected_slot == OWNER_DEITY && _game_mode == GM_NORMAL) || this->selected_slot == INVALID_COMPANY);
  21.         this->SetWidgetDisabledState(WID_AIC_CONFIGURE, this->selected_slot == INVALID_COMPANY || GetConfig(this->selected_slot)->GetConfigList()->size() == 0);
  22.         this->SetWidgetDisabledState(WID_AIC_MOVE_UP, this->selected_slot == OWNER_DEITY || this->selected_slot == INVALID_COMPANY || !IsEditable((CompanyID)(this->selected_slot - 1)));
  23. Index: src/table/settings.ini
  24. ===================================================================
  25. --- src/table/settings.ini  (revision 27529)
  26. +++ src/table/settings.ini  (working copy)
  27. @@ -103,7 +103,7 @@
  28.  from     = 97
  29.  def      = 0
  30.  min      = 0
  31. -max      = MAX_COMPANIES - 1
  32. +max      = MAX_COMPANIES
  33.  interval = 1
  34.  proc     = MaxNoAIsChange
  35.  cat      = SC_BASIC

Comments