src/vehicle.cpp
changeset 10153 8e4ec1bbd946
parent 10138 2e45473a4015
child 10180 5f8bba5dd224
--- a/src/vehicle.cpp	Sun Apr 13 11:15:48 2008 +0000
+++ b/src/vehicle.cpp	Sun Apr 13 11:35:57 2008 +0000
@@ -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();
 }