(svn r24789) -Add: Separate setting to control the default settings of newly added scripts and random AIs.

This commit is contained in:
frosch
2012-12-05 19:36:04 +00:00
parent 79968fb667
commit 9ef1c5f4c3
9 changed files with 33 additions and 3 deletions

View File

@@ -82,7 +82,7 @@ int AIConfig::GetSetting(const char *name) const
SettingValueList::const_iterator it = this->settings.find(name);
if (it == this->settings.end()) {
assert(strcmp("start_date", name) == 0);
switch (GetGameSettings().difficulty.diff_level) {
switch (GetGameSettings().script.settings_profile) {
case SP_EASY: return AI::START_NEXT_EASY;
case SP_MEDIUM: return AI::START_NEXT_MEDIUM;
case SP_HARD: return AI::START_NEXT_HARD;