(svn r24786) -Codechange: Add SettingsProfile enum for difficulty profiles and highscore tables.

This commit is contained in:
frosch
2012-12-05 19:34:45 +00:00
parent 18b97fa062
commit 903294f2bb
10 changed files with 60 additions and 41 deletions

View File

@@ -87,7 +87,7 @@ 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 != 3) {
if (GetGameSettings().difficulty.diff_level != SP_CUSTOM) {
return this->info->GetSettingDefaultValue(name);
}