mirror of https://github.com/OpenTTD/OpenTTD
(svn r18897) -Fix: Land area information read the stationspec also for non-rail-stationtiles, which is no longer valid since r18876.
parent
9e106dca81
commit
4034f249db
|
@ -2521,15 +2521,17 @@ static void GetTileDesc_Station(TileIndex tile, TileDesc *td)
|
||||||
}
|
}
|
||||||
td->build_date = BaseStation::GetByTile(tile)->build_date;
|
td->build_date = BaseStation::GetByTile(tile)->build_date;
|
||||||
|
|
||||||
const StationSpec *spec = GetStationSpec(tile);
|
if (HasStationTileRail(tile)) {
|
||||||
|
const StationSpec *spec = GetStationSpec(tile);
|
||||||
|
|
||||||
if (spec != NULL) {
|
if (spec != NULL) {
|
||||||
td->station_class = GetStationClassName(spec->sclass);
|
td->station_class = GetStationClassName(spec->sclass);
|
||||||
td->station_name = spec->name;
|
td->station_name = spec->name;
|
||||||
|
|
||||||
if (spec->grffile != NULL) {
|
if (spec->grffile != NULL) {
|
||||||
const GRFConfig *gc = GetGRFConfig(spec->grffile->grfid);
|
const GRFConfig *gc = GetGRFConfig(spec->grffile->grfid);
|
||||||
td->grf = gc->name;
|
td->grf = gc->name;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue