diff options
author | truelight <truelight@openttd.org> | 2004-08-17 16:20:04 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2004-08-17 16:20:04 +0000 |
commit | 4b919416a2d627fc6c979bc12069f120040a48f7 (patch) | |
tree | 8e87986ba34d24e9358ebd81cc9cac5469c51089 /roadveh_cmd.c | |
parent | 5e25a4ee7996a4cc3456c91ba07f27b5e810ffdf (diff) | |
download | openttd-4b919416a2d627fc6c979bc12069f120040a48f7.tar.xz |
(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
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 79022d231..0ddb23387 100644 --- a/roadveh_cmd.c +++ b/roadveh_cmd.c @@ -1497,7 +1497,7 @@ static void CheckIfRoadVehNeedsService(Vehicle *v) { int i; - if (_patches.servint_roadveh == 0 && IS_HUMAN_PLAYER(v->owner)) + if (_patches.servint_roadveh == 0) return; if (v->date_of_last_service + v->service_interval > _date) @@ -1506,7 +1506,7 @@ static void CheckIfRoadVehNeedsService(Vehicle *v) if (v->vehstatus & VS_STOPPED) return; - if (_patches.gotodepot && IS_HUMAN_PLAYER(v->owner) && ScheduleHasDepotOrders(v->schedule_ptr)) + if (_patches.gotodepot && ScheduleHasDepotOrders(v->schedule_ptr)) return; // Don't interfere with a depot visit scheduled by the user, or a |