Loading

Paste #pbq5a3cca

  1.         bool selected_ingame = _game_mode == GM_NORMAL && this->selected_slot != INVALID_COMPANY && IsEditable(this->selected_slot);
  2.         bool is_gs_slot = this->selected_slot == OWNER_DEITY;
  3.         bool is_green_ai_slot = Company::IsValidAiID(selected_slot) && !Company::Get(selected_slot)->ai_instance->IsDead();
  4.         if (selected_ingame && (is_gs_slot || is_green_ai_slot)) {
  5.             configure_button->SetDataTip(STR_AI_DEBUG_SETTINGS, STR_AI_DEBUG_SETTINGS_TOOLTIP);
  6.         } else {
  7.             configure_button->SetDataTip(STR_AI_CONFIG_CONFIGURE, STR_AI_CONFIG_CONFIGURE_TOOLTIP);
  8.         }

Comments