(svn r13206) -Feature(ette): Display all owners of a tile in the tile-info-window.

This commit is contained in:
frosch
2008-05-21 22:15:39 +00:00
parent 42f78d2fc3
commit 7f80552293
15 changed files with 139 additions and 44 deletions

View File

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