forked from mirror/OpenTTD
(svn r1015) MFM r789
Replaced the slightly misleading SERVICE_INTERVAL by a function VehicleNeedsService()
This commit is contained in:
@@ -1589,7 +1589,7 @@ static bool ProcessTrainOrder(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++;
|
||||
}
|
||||
|
||||
@@ -2597,7 +2597,7 @@ static void CheckIfTrainNeedsService(Vehicle *v)
|
||||
if (_patches.servint_trains == 0)
|
||||
return;
|
||||
|
||||
if (SERVICE_INTERVAL)
|
||||
if (!VehicleNeedsService(v))
|
||||
return;
|
||||
|
||||
if (v->vehstatus & VS_STOPPED)
|
||||
|
Reference in New Issue
Block a user