Mercurial > hg > openttd
diff src/saveload/afterload.cpp @ 17229:7b48e75bd53c draft
(svn r21969) -Feature: Introduce 'minimal' number of industries as a replacment for the old 'none' setting in the newgame window.
author | alberth <alberth@openttd.org> |
---|---|
date | Sat, 05 Feb 2011 10:28:31 +0000 |
parents | a1dda316ecbe |
children | 5221777879f1 |
line wrap: on
line diff
--- a/src/saveload/afterload.cpp +++ b/src/saveload/afterload.cpp @@ -2561,6 +2561,14 @@ _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();