(svn r21969) -Feature: Introduce 'minimal' number of industries as a replacment for the old 'none' setting in the newgame window.

This commit is contained in:
alberth
2011-02-05 10:28:31 +00:00
parent 1527ca3e79
commit e3a35f7d40
6 changed files with 16 additions and 7 deletions

View File

@@ -2561,6 +2561,14 @@ bool AfterLoadGame()
_settings_game.pf.reverse_at_signals = IsSavegameVersionBefore(100) || (_settings_game.pf.wait_oneway_signal != 255 && _settings_game.pf.wait_twoway_signal != 255 && _settings_game.pf.wait_for_pbs_path != 255);
}
if (IsSavegameVersionBefore(160)) {
/* Setting difficulty number_industries other than zero get bumped to +1
* since a new option (very low at position1) has been added */
if (_settings_game.difficulty.number_industries > 0) {
_settings_game.difficulty.number_industries++;
}
}
/* Road stops is 'only' updating some caches */
AfterLoadRoadStops();
AfterLoadLabelMaps();

View File

@@ -224,8 +224,9 @@
* 157 21862
* 158 21933
* 159 21962
* 160 21968
*/
extern const uint16 SAVEGAME_VERSION = 159; ///< Current savegame version of OpenTTD.
extern const uint16 SAVEGAME_VERSION = 160; ///< Current savegame version of OpenTTD.
SavegameType _savegame_type; ///< type of savegame we are loading