|
|
@ -592,7 +592,10 @@ struct AISettingsWindow : public Window {
|
|
|
|
private:
|
|
|
|
private:
|
|
|
|
bool IsEditableItem(const ScriptConfigItem &config_item) const
|
|
|
|
bool IsEditableItem(const ScriptConfigItem &config_item) const
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return _game_mode == GM_MENU || ((this->slot != OWNER_DEITY) && !Company::IsValidID(this->slot)) || (config_item.flags & SCRIPTCONFIG_INGAME) != 0;
|
|
|
|
return _game_mode == GM_MENU
|
|
|
|
|
|
|
|
|| ((this->slot != OWNER_DEITY) && !Company::IsValidID(this->slot))
|
|
|
|
|
|
|
|
|| (config_item.flags & SCRIPTCONFIG_INGAME) != 0
|
|
|
|
|
|
|
|
|| _settings_client.gui.ai_developer_tools;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|