diff options
author | Samu <dj_samu@hotmail.com> | 2018-10-01 16:01:28 +0100 |
---|---|---|
committer | Michael Lutz <michi@icosahedron.de> | 2019-02-27 00:06:57 +0100 |
commit | 9b99b95955d72e49821fe235c0d6fc1e75dc64b2 (patch) | |
tree | 2077846a68f10fd6f24175ae1b43ca3174e0da3f /src/order_func.h | |
parent | 7ac17f5ae4576a11d1f16281b656ffcd463ab5ac (diff) | |
download | openttd-9b99b95955d72e49821fe235c0d6fc1e75dc64b2.tar.xz |
Fix #6574: Remove go to hangar orders when rebuilding airport
When replacing an airport with another, cancel current orders of type 'go to depot' from aircraft still heading to it if the rebuilt airport doesn't have a hangar (helicopter vs heliport), or if the airplane can't land on the rebuilt airport (airplane vs helistation).
Removes 'go to hangar' orders from all aircraft when replacing an airport with hangar with another without hangar (heliport).
Diffstat (limited to 'src/order_func.h')
-rw-r--r-- | src/order_func.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/order_func.h b/src/order_func.h index 54977181a..df9939428 100644 --- a/src/order_func.h +++ b/src/order_func.h @@ -17,7 +17,7 @@ #include "company_type.h" /* Functions */ -void RemoveOrderFromAllVehicles(OrderType type, DestinationID destination); +void RemoveOrderFromAllVehicles(OrderType type, DestinationID destination, bool hangar = false); void InvalidateVehicleOrder(const Vehicle *v, int data); void CheckOrders(const Vehicle*); void DeleteVehicleOrders(Vehicle *v, bool keep_orderlist = false, bool reset_order_indices = true); |