diff options
author | tron <tron@openttd.org> | 2004-12-11 10:17:10 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2004-12-11 10:17:10 +0000 |
commit | 0ba5123cef72c427c010f9ce8bcb6003e1de72bd (patch) | |
tree | d480e20495e9f20ac7e66ff407aa48a08fcb4321 /roadveh_cmd.c | |
parent | 5a3ef18c94cabc855b956a2bbcd6a7ed91ea2b2e (diff) | |
download | openttd-0ba5123cef72c427c010f9ce8bcb6003e1de72bd.tar.xz |
(svn r1015) MFM r789
Replaced the slightly misleading SERVICE_INTERVAL by a function VehicleNeedsService()
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) |