diff options
author | truebrain <truebrain@openttd.org> | 2011-12-19 20:59:19 +0000 |
---|---|---|
committer | truebrain <truebrain@openttd.org> | 2011-12-19 20:59:19 +0000 |
commit | afcf07ac8a0d5adede1b412600042a9f3b482648 (patch) | |
tree | 7fec6be73ba17fd98c3dee69e65d0a15aa7feaed /src/town_gui.cpp | |
parent | c7c1deaf41a2ce8cfa30ea2eaf1ef808e6529eae (diff) | |
download | openttd-afcf07ac8a0d5adede1b412600042a9f3b482648.tar.xz |
(svn r23620) -Add: ScriptTown::SetCargoGoal and ScriptTown::SetGrowthRate (GameScript only)
Diffstat (limited to 'src/town_gui.cpp')
-rw-r--r-- | src/town_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/town_gui.cpp b/src/town_gui.cpp index 6fdcc22ce..0f64af355 100644 --- a/src/town_gui.cpp +++ b/src/town_gui.cpp @@ -391,7 +391,7 @@ public: } if (HasBit(this->town->flags, TOWN_IS_FUNDED)) { - SetDParam(0, (this->town->growth_rate * TOWN_GROWTH_TICKS + DAY_TICKS) / DAY_TICKS); + SetDParam(0, ((this->town->growth_rate & (~TOWN_GROW_RATE_CUSTOM)) * TOWN_GROWTH_TICKS + DAY_TICKS) / DAY_TICKS); DrawString(r.left + WD_FRAMERECT_LEFT, r.right - WD_FRAMERECT_LEFT, y += FONT_HEIGHT_NORMAL, this->town->fund_buildings_months == 0 ? STR_TOWN_VIEW_TOWN_GROWS_EVERY : STR_TOWN_VIEW_TOWN_GROWS_EVERY_FUNDED); } else { DrawString(r.left + WD_FRAMERECT_LEFT, r.right - WD_FRAMERECT_LEFT, y += FONT_HEIGHT_NORMAL, STR_TOWN_VIEW_TOWN_GROW_STOPPED); |