(svn r13830) -Feature: show additional NewGRF info in the Tile Info window for stations, houses and industries

This commit is contained in:
smatz
2008-07-25 22:37:34 +00:00
parent ce7585101d
commit 05c2a8eba4
8 changed files with 65 additions and 4 deletions

View File

@@ -616,12 +616,19 @@ static void GetAcceptedCargo_Town(TileIndex tile, AcceptedCargo ac)
static void GetTileDesc_Town(TileIndex tile, TileDesc *td)
{
td->str = GetHouseSpecs(GetHouseType(tile))->building_name;
const HouseSpec *hs = GetHouseSpecs(GetHouseType(tile));
td->str = hs->building_name;
if (!IsHouseCompleted(tile)) {
SetDParamX(td->dparam, 0, td->str);
td->str = STR_2058_UNDER_CONSTRUCTION;
}
if (hs->grffile != NULL) {
const GRFConfig *gc = GetGRFConfig(hs->grffile->grfid);
td->grf = gc->name;
}
td->owner[0] = OWNER_TOWN;
}