summaryrefslogtreecommitdiff
path: root/aircraft_cmd.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2004-12-11 10:17:10 +0000
committertron <tron@openttd.org>2004-12-11 10:17:10 +0000
commit0ba5123cef72c427c010f9ce8bcb6003e1de72bd (patch)
treed480e20495e9f20ac7e66ff407aa48a08fcb4321 /aircraft_cmd.c
parent5a3ef18c94cabc855b956a2bbcd6a7ed91ea2b2e (diff)
downloadopenttd-0ba5123cef72c427c010f9ce8bcb6003e1de72bd.tar.xz
(svn r1015) MFM r789
Replaced the slightly misleading SERVICE_INTERVAL by a function VehicleNeedsService()
Diffstat (limited to 'aircraft_cmd.c')
-rw-r--r--aircraft_cmd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/aircraft_cmd.c b/aircraft_cmd.c
index 74a823251..a851343fe 100644
--- a/aircraft_cmd.c
+++ b/aircraft_cmd.c
@@ -461,7 +461,7 @@ static void CheckIfAircraftNeedsService(Vehicle *v)
if (_patches.servint_aircraft == 0)
return;
- if (SERVICE_INTERVAL)
+ if (!VehicleNeedsService(v))
return;
if (v->vehstatus & VS_STOPPED)
@@ -997,7 +997,7 @@ static void ProcessAircraftOrder(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++;
}