(svn r24788) -Change: Detach script settings from difficulty settings. Always allow changing all script settings without setting difficulty to custom.

This commit is contained in:
frosch
2012-12-05 19:35:38 +00:00
parent 6516c85c82
commit 79968fb667
3 changed files with 1 additions and 25 deletions

View File

@@ -80,7 +80,7 @@ int AIConfig::GetSetting(const char *name) const
{
if (this->info == NULL) {
SettingValueList::const_iterator it = this->settings.find(name);
if (it == this->settings.end() || GetGameSettings().difficulty.diff_level != SP_CUSTOM) {
if (it == this->settings.end()) {
assert(strcmp("start_date", name) == 0);
switch (GetGameSettings().difficulty.diff_level) {
case SP_EASY: return AI::START_NEXT_EASY;