(svn r16187) -Fix [FS#2871]: do mark the "go to depot X" order fulfilled when reaching any depot, but only when reaching depot X.

replace/41b28d7194a279bdc17475d4fbe2ea6ec885a466
rubidium 16 years ago
parent e62df0abf9
commit 2a68294990

@ -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++;

Loading…
Cancel
Save