summaryrefslogtreecommitdiff
path: root/src/town.h
diff options
context:
space:
mode:
authortruebrain <truebrain@openttd.org>2011-12-19 20:59:19 +0000
committertruebrain <truebrain@openttd.org>2011-12-19 20:59:19 +0000
commitafcf07ac8a0d5adede1b412600042a9f3b482648 (patch)
tree7fec6be73ba17fd98c3dee69e65d0a15aa7feaed /src/town.h
parentc7c1deaf41a2ce8cfa30ea2eaf1ef808e6529eae (diff)
downloadopenttd-afcf07ac8a0d5adede1b412600042a9f3b482648.tar.xz
(svn r23620) -Add: ScriptTown::SetCargoGoal and ScriptTown::SetGrowthRate (GameScript only)
Diffstat (limited to 'src/town.h')
-rw-r--r--src/town.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/town.h b/src/town.h
index c081f435f..35e3b84c8 100644
--- a/src/town.h
+++ b/src/town.h
@@ -37,6 +37,7 @@ static const uint INVALID_TOWN = 0xFFFF;
static const uint TOWN_GROWTH_WINTER = 0xFFFFFFFE; ///< The town only needs this cargo in the winter (any amount)
static const uint TOWN_GROWTH_DESERT = 0xFFFFFFFF; ///< The town needs the cargo for growth when on desert (any amount)
+static const uint16 TOWN_GROW_RATE_CUSTOM = 0x8000; ///< If this mask is applied to Town::grow_counter, the grow_counter will not be calculated by the system (but assumed to be set by scripts)
typedef Pool<Town, TownID, 64, 64000> TownPool;
extern TownPool _town_pool;