Loading

Paste #pcgnsbddr

  1. bool gs_slot = this->selected_slot == OWNER_DEITY;
  2. bool dead_ai_slot = IsEditable((CompanyID)(this->selected_slot)) && Company::IsValidAiID(this->selected_slot) && !Company::Get(this->selected_slot)->ai_instance->IsDead();
  3. this->SetWidgetDisabledState(WID_AIC_CHANGE, _game_mode == GM_NORMAL && (gs_slot || dead_ai_slot) || this->selected_slot == INVALID_COMPANY);

Version history

Revision # Author Created at
pytpi3bkw Anonymous 10 Apr 2016, 15:05:01 UTC Diff

Comments