diff options
author | frosch <frosch@openttd.org> | 2008-04-08 15:48:32 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2008-04-08 15:48:32 +0000 |
commit | b91781b715272c0248b766d4e92da812a3c203ee (patch) | |
tree | aa0aa02603f911329fcc1e70972dd58ae153c69a /src/order_cmd.cpp | |
parent | 4267797cc8f7ee669122c22efeb5a6014644689f (diff) | |
download | openttd-b91781b715272c0248b766d4e92da812a3c203ee.tar.xz |
(svn r12629) -Codechange: Split VehicleNeedsService() into Vehicle::NeedsServicing() and Vehicle::NeedsAutomaticServicing().
-Fix (r11052): Disable servicing by service-interval if a vehicle has depot orders.
Diffstat (limited to 'src/order_cmd.cpp')
-rw-r--r-- | src/order_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/order_cmd.cpp b/src/order_cmd.cpp index adabeb4a3..f2583598b 100644 --- a/src/order_cmd.cpp +++ b/src/order_cmd.cpp @@ -1352,7 +1352,7 @@ bool ProcessOrders(Vehicle *v) /* Let a depot order in the orderlist interrupt. */ if (!(v->current_order.GetDepotOrderType() & ODTFB_PART_OF_ORDERS)) return false; - if ((v->current_order.GetDepotOrderType() & ODTFB_SERVICE) && !VehicleNeedsService(v)) { + if ((v->current_order.GetDepotOrderType() & ODTFB_SERVICE) && !v->NeedsServicing()) { UpdateVehicleTimetable(v, true); v->cur_order_index++; } |