summaryrefslogtreecommitdiff
path: root/src/openttd.cpp
diff options
context:
space:
mode:
authormaedhros <maedhros@openttd.org>2007-04-18 14:23:30 +0000
committermaedhros <maedhros@openttd.org>2007-04-18 14:23:30 +0000
commit16a948a463feb420d0a1fee654b54a4a7acf165e (patch)
treeb3ab848eec6066ba38410f4d1640c44100aa40fc /src/openttd.cpp
parent4b7c59fce15d7e861b6f3115a3117eee1a38d778 (diff)
downloadopenttd-16a948a463feb420d0a1fee654b54a4a7acf165e.tar.xz
(svn r9667) -Feature: Add the concept of cities. A (configurable) proportion of towns can
start off larger, and will grow twice as quickly as other towns. They can also be placed specifically in the scenario editor. Thanks to TheJosh for the initial patch and the idea.
Diffstat (limited to 'src/openttd.cpp')
-rw-r--r--src/openttd.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp
index 26106e1ab..64dccfb37 100644
--- a/src/openttd.cpp
+++ b/src/openttd.cpp
@@ -1913,6 +1913,19 @@ bool AfterLoadGame()
}
}
+ /* A patch option containing the proportion of towns that grow twice as
+ * fast was added in version 54. From version 56 this is now saved in the
+ * town as cities can be built specifically in the scenario editor. */
+ if (CheckSavegameVersion(56)) {
+ Town *t;
+
+ FOR_ALL_TOWNS(t) {
+ if (_patches.larger_towns != 0 && (t->index % _patches.larger_towns) == 0) {
+ t->larger_town = true;
+ }
+ }
+ }
+
return true;
}