In TTDPatch 0x14 (AMS_TTDP_FLIGHT_FINAL) is the “holding pattern”, 0x10 (AMS_TTDP_FLIGHT_APPROACH) is a short level flight before the decent begins.bulb wrote:I am not sure about the difference between AMS_TTDP_FLIGHT_APPROACH (0x10) and AMS_TTDP_FLIGHT_FINAL (0x14), but they differ from AMS_TTDP_FLIGHT_TO_TOWER by the fact that the AirportMovingData has AMED_SLOWTURN flag on.
Maybe AMS_TTDP_FLIGHT_APPROACH is differentiated by the fact that the position has a decision, ie. that the AirportFTA for the position has a next. However I'll probably just add a flag to the AirportMovementData, as I think about using it in the AircraftController when handling helicopters.
In OpenTTD there is no easy way to differentiate these states. In the existing trunk code, these states are never returned by varaction 2 var 0xE2, 0x12 (AMS_TTDP_FLIGHT_TO_TOWER) will be returned instead.
The patch I have sent you improves on this; 0x14 is returned for both 0x14 and 0x10. State 0x10 occurs for such a short time that I doubt it makes much difference. As you say implementing 0x10 would probably need an additional flag.