diff options
author | frosch <frosch@openttd.org> | 2013-11-12 17:57:12 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2013-11-12 17:57:12 +0000 |
commit | 9a41aefcc4a75ca98dd73e022d058b52bbd2a26d (patch) | |
tree | 3629e7fd54b024dda142bd2fb2afadde9557949d /src/town.h | |
parent | b1f41a0afb460071db2dbbfcb64140488f073382 (diff) | |
download | openttd-9a41aefcc4a75ca98dd73e022d058b52bbd2a26d.tar.xz |
(svn r25968) -Add: [Script] ScriptTown::TOWN_GROWTH_NONE to indicate no town growth via ScriptTown::SetGrowthRate and GetGrowthRate.
Diffstat (limited to 'src/town.h')
-rw-r--r-- | src/town.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/town.h b/src/town.h index c378dd3c3..42495971e 100644 --- a/src/town.h +++ b/src/town.h @@ -35,7 +35,8 @@ 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) +static const uint16 TOWN_GROW_RATE_CUSTOM = 0x8000; ///< If this mask is applied to Town::growth_rate, the grow_counter will not be calculated by the system (but assumed to be set by scripts) +static const uint16 TOWN_GROW_RATE_CUSTOM_NONE = 0xFFFF; ///< Special value for Town::growth_rate to disable town growth. typedef Pool<Town, TownID, 64, 64000> TownPool; extern TownPool _town_pool; |