(svn r12629) -Codechange: Split VehicleNeedsService() into Vehicle::NeedsServicing() and Vehicle::NeedsAutomaticServicing().
-Fix (r11052): Disable servicing by service-interval if a vehicle has depot orders.
This commit is contained in:
@@ -144,7 +144,7 @@ static const Depot* FindClosestShipDepot(const Vehicle* v)
|
||||
|
||||
static void CheckIfShipNeedsService(Vehicle *v)
|
||||
{
|
||||
if (_patches.servint_ships == 0 || !VehicleNeedsService(v)) return;
|
||||
if (_patches.servint_ships == 0 || !v->NeedsAutomaticServicing()) return;
|
||||
if (v->IsInDepot()) {
|
||||
VehicleServiceInDepot(v);
|
||||
return;
|
||||
|
Reference in New Issue
Block a user