summaryrefslogtreecommitdiff
path: root/src/town.h
diff options
context:
space:
mode:
authortruebrain <truebrain@openttd.org>2011-12-19 21:00:55 +0000
committertruebrain <truebrain@openttd.org>2011-12-19 21:00:55 +0000
commitad48ab923764087bf66153d1c26ed0eb05a19989 (patch)
tree7851cc098dee7c0e5c5ea0ffe183711342b2a283 /src/town.h
parent894216083d3f0b7c01ad705c253723e948297138 (diff)
downloadopenttd-ad48ab923764087bf66153d1c26ed0eb05a19989.tar.xz
(svn r23626) -Add: ScriptTown::SetText, which adds custom text to the Town GUI
Diffstat (limited to 'src/town.h')
-rw-r--r--src/town.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/town.h b/src/town.h
index 35e3b84c8..068a2053a 100644
--- a/src/town.h
+++ b/src/town.h
@@ -78,6 +78,8 @@ struct Town : TownPool::PoolItem<&_town_pool> {
TransportedCargoStat<uint16> received[NUM_TE]; ///< Cargo statistics about received cargotypes.
uint32 goal[NUM_TE]; ///< Amount of cargo required for the town to grow.
+ char *text; ///< General text with additional information.
+
inline byte GetPercentTransported(CargoID cid) const { return this->supplied[cid].old_act * 256 / (this->supplied[cid].old_max + 1); }
/* Cargo production and acceptance stats. */