diff options
author | yexo <yexo@openttd.org> | 2010-06-20 19:13:02 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2010-06-20 19:13:02 +0000 |
commit | 9cfb61adf58f882f03f17da05e84c25f7572be6d (patch) | |
tree | eeff74805ecd5cdd0a0869ee5dab36d34492a883 /src/road_cmd.cpp | |
parent | f2d6bf6b584e22932fc2e7778aa2d57c033ab62a (diff) | |
download | openttd-9cfb61adf58f882f03f17da05e84c25f7572be6d.tar.xz |
(svn r20003) -Feature [FS#3886]: [NewGRF] var 43 depot build date for railtypes
Diffstat (limited to 'src/road_cmd.cpp')
-rw-r--r-- | src/road_cmd.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/road_cmd.cpp b/src/road_cmd.cpp index ac81ea005..ab5a5df5c 100644 --- a/src/road_cmd.cpp +++ b/src/road_cmd.cpp @@ -36,6 +36,7 @@ #include "company_base.h" #include "core/random_func.hpp" #include "newgrf_railtype.h" +#include "date_func.h" #include "table/strings.h" @@ -909,6 +910,7 @@ CommandCost CmdBuildRoadDepot(TileIndex tile, DoCommandFlag flags, uint32 p1, ui if (flags & DC_EXEC) { Depot *dep = new Depot(tile); + dep->build_date = _date; MakeRoadDepot(tile, _current_company, dep->index, dir, rt); MarkTileDirtyByTile(tile); @@ -1534,6 +1536,7 @@ static void GetTileDesc_Road(TileIndex tile, TileDesc *td) case ROAD_TILE_DEPOT: td->str = STR_LAI_ROAD_DESCRIPTION_ROAD_VEHICLE_DEPOT; road_owner = GetTileOwner(tile); // Tile has only one owner, roadtype does not matter + td->build_date = Depot::GetByTile(tile)->build_date; break; default: { |