summaryrefslogtreecommitdiff
path: root/src/newgrf_town.cpp
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/newgrf_town.cpp
parentc7c1deaf41a2ce8cfa30ea2eaf1ef808e6529eae (diff)
downloadopenttd-afcf07ac8a0d5adede1b412600042a9f3b482648.tar.xz
(svn r23620) -Add: ScriptTown::SetCargoGoal and ScriptTown::SetGrowthRate (GameScript only)
Diffstat (limited to 'src/newgrf_town.cpp')
-rw-r--r--src/newgrf_town.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf_town.cpp b/src/newgrf_town.cpp
index 876e32870..55adaba31 100644
--- a/src/newgrf_town.cpp
+++ b/src/newgrf_town.cpp
@@ -90,7 +90,7 @@ uint32 TownGetVariable(byte variable, uint32 parameter, bool *available, Town *t
case 0xAE: return t->have_ratings;
case 0xB2: return t->statues;
case 0xB6: return ClampToU16(t->num_houses);
- case 0xB9: return t->growth_rate;
+ case 0xB9: return t->growth_rate & (~TOWN_GROW_RATE_CUSTOM);
case 0xBA: return ClampToU16(t->supplied[CT_PASSENGERS].new_max);
case 0xBB: return GB(ClampToU16(t->supplied[CT_PASSENGERS].new_max), 8, 8);
case 0xBC: return ClampToU16(t->supplied[CT_MAIL].new_max);