summaryrefslogtreecommitdiff
path: root/src/openttd.cpp
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2007-05-01 17:16:51 +0000
committerbelugas <belugas@openttd.org>2007-05-01 17:16:51 +0000
commit7de20df3791e86c0692b05f94a68b96f45bc7a33 (patch)
treebf93bc8357cca9a06087d150d441d6b6b9113a71 /src/openttd.cpp
parent53485da02ce6ca366ecb8d011a4007f37a3e3082 (diff)
downloadopenttd-7de20df3791e86c0692b05f94a68b96f45bc7a33.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.cpp11
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;
}