mirror of https://github.com/OpenTTD/OpenTTD
Change: Let AI developers edit non-editable AI/Game Script Parameters (#8895)
parent
ede0560f9b
commit
019dcb7b7b
|
@ -592,7 +592,10 @@ struct AISettingsWindow : public Window {
|
|||
private:
|
||||
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;
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue