summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-04-13 10:26:39 +0000
committerrubidium <rubidium@openttd.org>2008-04-13 10:26:39 +0000
commit9349767e1dd83370b81030489224b4234445ceba (patch)
treef04c5b14e79b2ef972cf7d4c20753267c221afd1 /src
parent604c5bbfb71c5baac731099e8889bfb7c34f6a3d (diff)
downloadopenttd-9349767e1dd83370b81030489224b4234445ceba.tar.xz
(svn r12681) -Fix [FS#1921]: aircraft stopping mid-air.
Diffstat (limited to 'src')
-rw-r--r--src/order_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/order_cmd.cpp b/src/order_cmd.cpp
index 367ca290a..64e235ce6 100644
--- a/src/order_cmd.cpp
+++ b/src/order_cmd.cpp
@@ -1644,7 +1644,7 @@ bool ProcessOrders(Vehicle *v)
}
/* If it is unchanged, keep it. */
- if (order->Equals(v->current_order) && v->dest_tile != 0 &&
+ if (order->Equals(v->current_order) && (v->type == VEH_AIRCRAFT || v->dest_tile != 0) &&
(v->type != VEH_SHIP || !order->IsType(OT_GOTO_STATION) || GetStation(order->GetDestination())->dock_tile != 0)) {
return false;
}