From eca692ef90477a0d0440b2354c99c0fac08bd2fa Mon Sep 17 00:00:00 2001 From: frosch Date: Wed, 21 May 2008 22:15:39 +0000 Subject: (svn r13206) -Feature(ette): Display all owners of a tile in the tile-info-window. --- src/station_cmd.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/station_cmd.cpp') 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; -- cgit v1.2.3-70-g09d2