Mercurial > hg > openttd
changeset 8911:72fcd1140679 draft
(svn r12681) -Fix [FS#1921]: aircraft stopping mid-air.
author | rubidium <rubidium@openttd.org> |
---|---|
date | Sun, 13 Apr 2008 10:26:39 +0000 |
parents | 70f154de6bb2 |
children | 7a72608476a7 |
files | src/order_cmd.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/order_cmd.cpp +++ b/src/order_cmd.cpp @@ -1644,7 +1644,7 @@ } /* 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; }