| 1729 | } |
| 1730 | |
| 1731 | static void AircraftEventHandler_EndLanding(Aircraft *v, const AirportFTAClass *apc) |
| 1732 | { |
| 1733 | /* next block busy, don't do a thing, just wait */ |
| 1734 | if (AirportHasBlock(v, &apc->layout[v->pos], apc)) return; |
| 1735 | |
| 1736 | /* if going to terminal (OT_GOTO_STATION) choose one |
| 1737 | * 1. in case all terminals are busy AirportFindFreeTerminal() returns false or |
| 1738 | * 2. not going for terminal (but depot, no order), |
| 1739 | * --> get out of the way to the hangar. */ |
| 1740 | if (v->current_order.IsType(OT_GOTO_STATION)) { |
| 1741 | if (AirportFindFreeTerminal(v, apc)) return; |
| 1742 | } |
| 1743 | v->state = HANGAR; |
| 1744 | |
| 1745 | } |
| 1746 | |
| 1747 | static void AircraftEventHandler_HeliEndLanding(Aircraft *v, const AirportFTAClass *apc) |
| 1748 | { |
nothing calls this directly
no test coverage detected