diff options
author | frosch <frosch@openttd.org> | 2008-05-21 22:15:39 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2008-05-21 22:15:39 +0000 |
commit | eca692ef90477a0d0440b2354c99c0fac08bd2fa (patch) | |
tree | 62b63bf8a41a39d8f1a47c54975f356368304e1f /src/station_cmd.cpp | |
parent | 510c0acb4aa1c6179857f5d1824828b7f2fbdc6c (diff) | |
download | openttd-eca692ef90477a0d0440b2354c99c0fac08bd2fa.tar.xz |
(svn r13206) -Feature(ette): Display all owners of a tile in the tile-info-window.
Diffstat (limited to 'src/station_cmd.cpp')
-rw-r--r-- | src/station_cmd.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp index 463f977f2..2cc60b4ef 100644 --- a/src/station_cmd.cpp +++ b/src/station_cmd.cpp @@ -2188,7 +2188,12 @@ static void GetAcceptedCargo_Station(TileIndex tile, AcceptedCargo ac) static void GetTileDesc_Station(TileIndex tile, TileDesc *td) { - td->owner = GetTileOwner(tile); + td->owner[0] = GetTileOwner(tile); + if (IsDriveThroughStopTile(tile) && HasTileRoadType(tile, ROADTYPE_ROAD) && GetStopBuiltOnTownRoad(tile)) { + /* Display a second owner */ + td->owner_type[1] = STR_ROAD_OWNER; + td->owner[1] = OWNER_TOWN; + } td->build_date = GetStationByTile(tile)->build_date; StringID str; |