| 3633 | } |
| 3634 | |
| 3635 | void FillTileDescAirport(TileIndex tile, TileDesc &td) |
| 3636 | { |
| 3637 | const AirportSpec *as = Station::GetByTile(tile)->airport.GetSpec(); |
| 3638 | td.airport_class = AirportClass::Get(as->class_index)->name; |
| 3639 | td.airport_name = as->name; |
| 3640 | |
| 3641 | const AirportTileSpec *ats = AirportTileSpec::GetByTile(tile); |
| 3642 | td.airport_tile_name = ats->name; |
| 3643 | |
| 3644 | if (as->grf_prop.HasGrfFile()) { |
| 3645 | const GRFConfig *gc = GetGRFConfig(as->grf_prop.grfid); |
| 3646 | td.grf = gc->GetName(); |
| 3647 | } else if (ats->grf_prop.HasGrfFile()) { |
| 3648 | const GRFConfig *gc = GetGRFConfig(ats->grf_prop.grfid); |
| 3649 | td.grf = gc->GetName(); |
| 3650 | } |
| 3651 | } |
| 3652 | |
| 3653 | static void GetTileDesc_Station(TileIndex tile, TileDesc &td) |
| 3654 | { |
no test coverage detected