typedef std::vector<const ScriptConfigItem *> VisibleSettingsList;
static VisibleSettingsList BuildVisibleSettingsList(CompanyID slot)
{
VisibleSettingsList visible_settings; ///< List of visible AI settings
ScriptConfig *config_list = GetConfig(slot);
ScriptConfigItemList::const_iterator it = config_list->GetConfigList()->begin();
for (; it != config_list->GetConfigList()->end(); it++) {
bool no_hide = (it->flags & SCRIPTCONFIG_DEVELOPER) == 0;
if (no_hide || _settings_client.gui.ai_developer_tools) {
visible_settings.push_back(&(*it));
}
}
return visible_settings;
}