1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-29 01:19:11 +00:00

(svn r1015) MFM r789

Replaced the slightly misleading SERVICE_INTERVAL by a function VehicleNeedsService()
This commit is contained in:
tron
2004-12-11 10:17:10 +00:00
parent 5a3ef18c94
commit 0ba5123cef
6 changed files with 17 additions and 9 deletions

View File

@@ -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)