1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-26 07:59:09 +00:00

(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
This commit is contained in:
truelight
2004-08-17 16:20:04 +00:00
parent 5e25a4ee79
commit 4b919416a2
5 changed files with 24 additions and 8 deletions

View File

@@ -2520,7 +2520,7 @@ static void CheckIfTrainNeedsService(Vehicle *v)
uint tile;
byte depot;
if (_patches.servint_trains == 0 && IS_HUMAN_PLAYER(v->owner))
if (_patches.servint_trains == 0)
return;
if (v->date_of_last_service + v->service_interval > _date)
@@ -2529,7 +2529,7 @@ static void CheckIfTrainNeedsService(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