(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

@@ -2755,6 +2755,11 @@ bool AfterLoadGame()
}
}
if (IsSavegameVersionBefore(178)) {
/* Initialise script settings profile */
_settings_game.script.settings_profile = IsInsideMM(_settings_game.difficulty.diff_level, SP_BEGIN, SP_END) ? _settings_game.difficulty.diff_level : (uint)SP_MEDIUM;
}
/* Road stops is 'only' updating some caches */
AfterLoadRoadStops();
AfterLoadLabelMaps();

View File

@@ -241,8 +241,9 @@
* 175 24136
* 176 24446
* 177 24619
* 178 TODO
*/
extern const uint16 SAVEGAME_VERSION = 177; ///< Current savegame version of OpenTTD.
extern const uint16 SAVEGAME_VERSION = 178; ///< Current savegame version of OpenTTD.
SavegameType _savegame_type; ///< type of savegame we are loading