diff options
author | rubidium <rubidium@openttd.org> | 2009-04-29 21:12:30 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-04-29 21:12:30 +0000 |
commit | 2a68294990d9d97b43777d02cb84ef3a909a655b (patch) | |
tree | 1b6dc9ef5eac4500375088941a90774cd6aecc2a | |
parent | e62df0abf9bc02877b9c71293c69e77d46246745 (diff) | |
download | openttd-2a68294990d9d97b43777d02cb84ef3a909a655b.tar.xz |
(svn r16187) -Fix [FS#2871]: do mark the "go to depot X" order fulfilled when reaching any depot, but only when reaching depot X.
-rw-r--r-- | src/vehicle.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp index 5c5b50988..3f1e06dea 100644 --- a/src/vehicle.cpp +++ b/src/vehicle.cpp @@ -1057,7 +1057,8 @@ void VehicleEnterDepot(Vehicle *v) } } - if (t.GetDepotOrderType() & ODTFB_PART_OF_ORDERS) { + if (t.GetDepotOrderType() & ODTFB_PART_OF_ORDERS && + (v->type == VEH_AIRCRAFT ? t.GetDestination() == GetStationIndex(v->tile) : v->dest_tile == v->tile)) { /* Part of orders */ UpdateVehicleTimetable(v, true); v->cur_order_index++; |