| 3614 | } |
| 3615 | |
| 3616 | void FillTileDescRailStation(TileIndex tile, TileDesc &td) |
| 3617 | { |
| 3618 | const StationSpec *spec = GetStationSpec(tile); |
| 3619 | |
| 3620 | if (spec != nullptr) { |
| 3621 | td.station_class = StationClass::Get(spec->class_index)->name; |
| 3622 | td.station_name = spec->name; |
| 3623 | |
| 3624 | if (spec->grf_prop.HasGrfFile()) { |
| 3625 | const GRFConfig *gc = GetGRFConfig(spec->grf_prop.grfid); |
| 3626 | td.grf = gc->GetName(); |
| 3627 | } |
| 3628 | } |
| 3629 | |
| 3630 | const RailTypeInfo *rti = GetRailTypeInfo(GetRailType(tile)); |
| 3631 | td.rail_speed = rti->max_speed; |
| 3632 | td.railtype = rti->strings.name; |
| 3633 | } |
| 3634 | |
| 3635 | void FillTileDescAirport(TileIndex tile, TileDesc &td) |
| 3636 | { |
no test coverage detected