mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-04 06:00:15 +00:00
(svn r24128) -Change: Don't let vehicles break down directly after servicing.
This commit is contained in:
parent
aa47d6c7f2
commit
ef8ee48044
@ -91,6 +91,8 @@ void VehicleServiceInDepot(Vehicle *v)
|
|||||||
v->date_of_last_service = _date;
|
v->date_of_last_service = _date;
|
||||||
v->breakdowns_since_last_service = 0;
|
v->breakdowns_since_last_service = 0;
|
||||||
v->reliability = v->GetEngine()->reliability;
|
v->reliability = v->GetEngine()->reliability;
|
||||||
|
/* Prevent vehicles from breaking down directly after exiting the depot. */
|
||||||
|
v->breakdown_chance /= 4;
|
||||||
SetWindowDirty(WC_VEHICLE_DETAILS, v->index); // ensure that last service date and reliability are updated
|
SetWindowDirty(WC_VEHICLE_DETAILS, v->index); // ensure that last service date and reliability are updated
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user