summaryrefslogtreecommitdiff
path: root/src/town.h
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2009-03-12 23:54:20 +0000
committerbelugas <belugas@openttd.org>2009-03-12 23:54:20 +0000
commitf6e4bc765ae9a69e3e0622724c6859d5b315c4af (patch)
treefa98a505935dda8630df645a1ed2db85cd425e43 /src/town.h
parentaf18469455ff19d223ba7e7114f42041fb35aab7 (diff)
downloadopenttd-f6e4bc765ae9a69e3e0622724c6859d5b315c4af.tar.xz
(svn r15695) -Feature [FS#2672]: Allow the number of towns that will be generated in the generate world window to be customized.
Some warnings: -the maximum number of towns to be accepted is set to 5000 -the minimum number of towns to be accepted is set to 1 -the number that is specified is NOT guaranteed to be the exact number of towns generated. The normal mechanism of town creation has not been modified. So town placement can still fail. -setting a custom number of town will change your difficulty settings to custom as well
Diffstat (limited to 'src/town.h')
-rw-r--r--src/town.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/town.h b/src/town.h
index ac7464e1f..004234cd8 100644
--- a/src/town.h
+++ b/src/town.h
@@ -95,6 +95,9 @@ struct BuildingCounts {
uint8 class_count[HOUSE_CLASS_MAX];
};
+static const int CUSTOM_TOWN_NUMBER_DIFFICULTY = 4; ///< value for custom town number in difficulty settings
+static const int CUSTOM_TOWN_MAX_NUMBER = 5000; ///< this is the maximum number of towns a user can specify in customisation
+
DECLARE_OLD_POOL(Town, Town, 3, 8000)
struct Town : PoolItem<Town, TownID, &_Town_pool> {