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
commit03910ce7e9010d7457e1088f22d78267554bd0cc (patch)
treed480e20495e9f20ac7e66ff407aa48a08fcb4321 /aircraft_cmd.c
parent2dd36c201275570fcfcfa68fca2fb8b9e06fa9be (diff)
downloadopenttd-03910ce7e9010d7457e1088f22d78267554bd0cc.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++;
}