From 812ae4140a8566c2b4b43c6aa5bab5eecf82f18a Mon Sep 17 00:00:00 2001 From: frosch Date: Wed, 5 Dec 2012 19:36:04 +0000 Subject: (svn r24789) -Add: Separate setting to control the default settings of newly added scripts and random AIs. --- src/script/script_info.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/script') diff --git a/src/script/script_info.cpp b/src/script/script_info.cpp index 94c977225..a1db9e13e 100644 --- a/src/script/script_info.cpp +++ b/src/script/script_info.cpp @@ -293,7 +293,7 @@ int ScriptInfo::GetSettingDefaultValue(const char *name) const for (ScriptConfigItemList::const_iterator it = this->config_list.begin(); it != this->config_list.end(); it++) { if (strcmp((*it).name, name) != 0) continue; /* The default value depends on the difficulty level */ - switch (GetGameSettings().difficulty.diff_level) { + switch (GetGameSettings().script.settings_profile) { case SP_EASY: return (*it).easy_value; case SP_MEDIUM: return (*it).medium_value; case SP_HARD: return (*it).hard_value; -- cgit v1.2.3-54-g00ecf