Mercurial > hg > openttd
changeset 8914:3559eb7e49a4 draft
(svn r12684) -Fix [FS#1891]: manually given service at depot order is not forgotten anymore when autoservice 'interferes'.
author | rubidium <rubidium@openttd.org> |
---|---|
date | Sun, 13 Apr 2008 11:35:57 +0000 |
parents | bd23b0133bdf |
children | 4d9b06c6a98d |
files | src/vehicle.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/vehicle.cpp +++ b/src/vehicle.cpp @@ -137,7 +137,7 @@ { if (_patches.gotodepot && VehicleHasDepotOrders(this)) return false; if (this->current_order.IsType(OT_LOADING)) return false; - if (this->current_order.IsType(OT_GOTO_DEPOT) && this->current_order.GetDepotActionType() & ODATFB_HALT) return false; + if (this->current_order.IsType(OT_GOTO_DEPOT) && this->current_order.GetDepotOrderType() != ODTFB_SERVICE) return false; return NeedsServicing(); }