Changeset - r8914:76135fe0c893
[Not reviewed]
master
0 1 0
rubidium - 16 years ago 2008-04-13 11:35:57
rubidium@openttd.org
(svn r12684) -Fix [FS#1891]: manually given service at depot order is not forgotten anymore when autoservice 'interferes'.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/vehicle.cpp
Show inline comments
 
@@ -137,7 +137,7 @@ bool Vehicle::NeedsAutomaticServicing() 
 
{
 
	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();
 
}
 

	
0 comments (0 inline, 0 general)