(svn r72) -Add: build_date of station (viewable with Query tool)

This commit is contained in:
truelight
2004-08-17 08:40:09 +00:00
parent b4e9a3d1d4
commit a21fa40127
4 changed files with 25 additions and 1 deletions

View File

@@ -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);