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 0ddb23387..e3fec5681 100644 --- a/roadveh_cmd.c +++ b/roadveh_cmd.c @@ -651,7 +651,7 @@ static void ProcessRoadVehOrder(Vehicle *v) } if ((v->next_order & (OT_MASK|OF_UNLOAD|OF_FULL_LOAD)) == (OT_GOTO_DEPOT|OF_UNLOAD|OF_FULL_LOAD) && - v->date_of_last_service+v->service_interval > _date) { + SERVICE_INTERVAL ) { v->cur_order_index++; } @@ -1500,7 +1500,7 @@ static void CheckIfRoadVehNeedsService(Vehicle *v) if (_patches.servint_roadveh == 0) return; - if (v->date_of_last_service + v->service_interval > _date) + if (SERVICE_INTERVAL) return; if (v->vehstatus & VS_STOPPED) |