| 3822 | |
| 3823 | |
| 3824 | static bool ClickTile_Station(TileIndex tile) |
| 3825 | { |
| 3826 | const BaseStation *bst = BaseStation::GetByTile(tile); |
| 3827 | |
| 3828 | if (bst->facilities.Test(StationFacility::Waypoint)) { |
| 3829 | ShowWaypointWindow(Waypoint::From(bst)); |
| 3830 | } else if (IsHangar(tile)) { |
| 3831 | const Station *st = Station::From(bst); |
| 3832 | ShowDepotWindow(st->airport.GetHangarTile(st->airport.GetHangarNum(tile)), VEH_AIRCRAFT); |
| 3833 | } else { |
| 3834 | ShowStationViewWindow(bst->index); |
| 3835 | } |
| 3836 | return true; |
| 3837 | } |
| 3838 | |
| 3839 | static VehicleEnterTileStates VehicleEnter_Station(Vehicle *v, TileIndex tile, int x, int y) |
| 3840 | { |
nothing calls this directly
no test coverage detected