From 4b919416a2d627fc6c979bc12069f120040a48f7 Mon Sep 17 00:00:00 2001 From: truelight Date: Tue, 17 Aug 2004 16:20:04 +0000 Subject: (svn r77) -Fix: [1010788] AI service interval bug (tnx truesatan) -Add: AI overrides service interval to 180 days -Fix: AI hanged when all vehicles were disabled in Patch menu --- aircraft_cmd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'aircraft_cmd.c') diff --git a/aircraft_cmd.c b/aircraft_cmd.c index c4500864e..a9fad4326 100644 --- a/aircraft_cmd.c +++ b/aircraft_cmd.c @@ -525,7 +525,7 @@ static void CheckIfAircraftNeedsService(Vehicle *v) { Station *st; - if (_patches.servint_aircraft == 0 && IS_HUMAN_PLAYER(v->owner)) + if (_patches.servint_aircraft == 0) return; if (v->date_of_last_service + v->service_interval > _date) @@ -537,7 +537,7 @@ static void CheckIfAircraftNeedsService(Vehicle *v) if ((v->next_order & (OT_MASK | OF_FULL_LOAD)) == (OT_GOTO_DEPOT | OF_FULL_LOAD)) return; - if (_patches.gotodepot && IS_HUMAN_PLAYER(v->owner) && ScheduleHasDepotOrders(v->schedule_ptr)) + if (_patches.gotodepot && ScheduleHasDepotOrders(v->schedule_ptr)) return; st = DEREF_STATION(v->next_order_param); -- cgit v1.2.3-54-g00ecf