Merge branch 'master' into jgrpp
# Conflicts: # src/company_cmd.cpp # src/console_cmds.cpp # src/linkgraph/linkgraph_gui.cpp # src/screenshot.cpp # src/settings_gui.cp
This commit is contained in:
@@ -602,7 +602,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;
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user