diff options
Diffstat (limited to 'roadveh_cmd.c')
-rw-r--r-- | roadveh_cmd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/roadveh_cmd.c b/roadveh_cmd.c index 7df7b7f44..a36604713 100644 --- a/roadveh_cmd.c +++ b/roadveh_cmd.c @@ -569,7 +569,7 @@ static void ProcessRoadVehOrder(Vehicle *v) if (v->current_order.type == OT_GOTO_DEPOT && (v->current_order.flags & (OF_UNLOAD | OF_FULL_LOAD)) == (OF_UNLOAD | OF_FULL_LOAD) && - SERVICE_INTERVAL ) { + !VehicleNeedsService(v)) { v->cur_order_index++; } @@ -1433,7 +1433,7 @@ static void CheckIfRoadVehNeedsService(Vehicle *v) if (_patches.servint_roadveh == 0) return; - if (SERVICE_INTERVAL) + if (!VehicleNeedsService(v)) return; if (v->vehstatus & VS_STOPPED) |