diff options
author | belugas <belugas@openttd.org> | 2007-05-01 17:16:51 +0000 |
---|---|---|
committer | belugas <belugas@openttd.org> | 2007-05-01 17:16:51 +0000 |
commit | 9b7a615887ea3c38113035dee72462441fae4ac3 (patch) | |
tree | bf93bc8357cca9a06087d150d441d6b6b9113a71 /src/openttd.cpp | |
parent | f25a168c98ff5178f746dcf62f25c073dfbfd043 (diff) | |
download | openttd-9b7a615887ea3c38113035dee72462441fae4ac3.tar.xz |
(svn r9762) -Feature: Two new difficulty settings : Very low number of towns and very low number of industries
Based on FS#289, by pitt2
Diffstat (limited to 'src/openttd.cpp')
-rw-r--r-- | src/openttd.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp index b5a8b385f..1ba3b5d46 100644 --- a/src/openttd.cpp +++ b/src/openttd.cpp @@ -1938,6 +1938,17 @@ bool AfterLoadGame() } } + if (CheckSavegameVersion(58)) { + /* patch difficulty number_industries other then zero get bumped to +1 + * since a new option (very low at position1) has been added */ + if (_opt.diff.number_industries > 0) { + _opt.diff.number_industries++; + } + + /* Same goes for number of towns, although no test is needed, just an increment */ + _opt.diff.number_towns++; + } + return true; } |