summaryrefslogtreecommitdiff
path: root/src/order_backup.h
diff options
context:
space:
mode:
authorSamu <dj_samu@hotmail.com>2018-10-01 16:01:28 +0100
committerMichael Lutz <michi@icosahedron.de>2019-02-27 00:06:57 +0100
commit9b99b95955d72e49821fe235c0d6fc1e75dc64b2 (patch)
tree2077846a68f10fd6f24175ae1b43ca3174e0da3f /src/order_backup.h
parent7ac17f5ae4576a11d1f16281b656ffcd463ab5ac (diff)
downloadopenttd-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_backup.h')
-rw-r--r--src/order_backup.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/order_backup.h b/src/order_backup.h
index 59404d5be..c56bc0ecc 100644
--- a/src/order_backup.h
+++ b/src/order_backup.h
@@ -63,7 +63,7 @@ public:
static void ClearGroup(GroupID group);
static void ClearVehicle(const Vehicle *v);
- static void RemoveOrder(OrderType type, DestinationID destination);
+ static void RemoveOrder(OrderType type, DestinationID destination, bool hangar);
};
/**