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

This commit is contained in:
rubidium 2009-04-29 21:12:30 +00:00
parent e62df0abf9
commit 2a68294990

View File

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