You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Airports cannot be cleared when there is a plane overflying the airport, even if the plane is heading for another airport.
In the attached savegame, a plane is flying from airport A (to the northwest) to airport C (to the southeast), and it is about to fly over airport B (which is not even on its schedule). As soon as the plane is over airport B, and as long as it does, the airport cannot be cleared. This has been tested in nightly r11193.
Oops, it seems I forgot to attach the savegame. Here it is.
Also, I've been looking into the bug and I think that the problem lies in src/station_cmd.cpp, function RemoveAirport. The code tries to ensure that there are no vehicles in the airport before allowing it to be cleared, but it uses EnsureNoVehicle to do so. The attached patch changes it to EnsureNoVehicleOnGround, and this seems to fix it.
cirdan opened the ticket and wrote:
Reported version: trunk
Operating system: All
This issue was imported from FlySpray: https://bugs.openttd.org/task/1249
The text was updated successfully, but these errors were encountered: