summaryrefslogtreecommitdiff
path: root/src/script
diff options
context:
space:
mode:
Diffstat (limited to 'src/script')
-rw-r--r--src/script/script_config.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/script/script_config.cpp b/src/script/script_config.cpp
index 46f13cd0c..7260febdf 100644
--- a/src/script/script_config.cpp
+++ b/src/script/script_config.cpp
@@ -86,11 +86,6 @@ void ScriptConfig::ClearConfigList()
int ScriptConfig::GetSetting(const char *name) const
{
- /* Return default values if the difficulty is not set to Custom */
- if (GetGameSettings().difficulty.diff_level != SP_CUSTOM) {
- return this->info->GetSettingDefaultValue(name);
- }
-
SettingValueList::const_iterator it = this->settings.find(name);
if (it == this->settings.end()) return this->info->GetSettingDefaultValue(name);
return (*it).second;