diff options
author | alberth <alberth@openttd.org> | 2011-02-06 18:26:50 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2011-02-06 18:26:50 +0000 |
commit | 4364cec392d1352406906a551e3ffa3f72da61ba (patch) | |
tree | 086ec0e028aaec75c92364dd1abd492d01672294 /src/saveload/afterload.cpp | |
parent | d84502c4327343ce2f25bca77febd5eca68cdf6c (diff) | |
download | openttd-4364cec392d1352406906a551e3ffa3f72da61ba.tar.xz |
(svn r22001) -Codechange: Rename difficulty.number_industries to difficulty.industry_density.
Diffstat (limited to 'src/saveload/afterload.cpp')
-rw-r--r-- | src/saveload/afterload.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/saveload/afterload.cpp b/src/saveload/afterload.cpp index dc021af33..abb2115b0 100644 --- a/src/saveload/afterload.cpp +++ b/src/saveload/afterload.cpp @@ -1448,10 +1448,10 @@ bool AfterLoadGame() } if (IsSavegameVersionBefore(58)) { - /* 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++; + /* Setting difficulty industry_density other than zero get bumped to +1 + * since a new option (very low at position 1) has been added */ + if (_settings_game.difficulty.industry_density > 0) { + _settings_game.difficulty.industry_density++; } /* Same goes for number of towns, although no test is needed, just an increment */ @@ -2563,10 +2563,10 @@ bool AfterLoadGame() } 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++; + /* Setting difficulty industry_density other than zero get bumped to +1 + * since a new option (minimal at position 1) has been added */ + if (_settings_game.difficulty.industry_density > 0) { + _settings_game.difficulty.industry_density++; } } |