diff options
author | truelight <truelight@openttd.org> | 2004-08-17 08:40:09 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2004-08-17 08:40:09 +0000 |
commit | a21fa401276c009ffdff7ca19fd505e5a92a9f03 (patch) | |
tree | 992ac2e3eec0208547e07b801bd2aa2f792cda88 /misc_gui.c | |
parent | b4e9a3d1d40d87f79394db4c4425d006aee253da (diff) | |
download | openttd-a21fa401276c009ffdff7ca19fd505e5a92a9f03.tar.xz |
(svn r72) -Add: build_date of station (viewable with Query tool)
Diffstat (limited to 'misc_gui.c')
-rw-r--r-- | misc_gui.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/misc_gui.c b/misc_gui.c index f86f2c8f5..0bae394a0 100644 --- a/misc_gui.c +++ b/misc_gui.c @@ -102,6 +102,11 @@ static void LandInfoWndProc(Window *w, WindowEvent *e) if (str != (STR_01CE_CARGO_ACCEPTED - 1)) DrawStringMultiCenter(140, 76, str, 276); + + if (lid->td.build_date != 0) { + SET_DPARAM16(0,lid->td.build_date); + DrawStringCentered(140,71, STR_BUILD_DATE, 0); + } } } @@ -145,7 +150,10 @@ static void Place_LandInfo(uint tile) lid.costclear = DoCommandByTile(tile, 0, 0, 0, CMD_LANDSCAPE_CLEAR); p->money64 = old_money; UpdatePlayerMoney32(p); - + + // Becuase build_date is not set yet in every TileDesc, we make sure it is empty + lid.td.build_date = 0; + GetAcceptedCargo(tile, &lid.ac); GetTileDesc(tile, &lid.td); |