summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormichi_cc <michi_cc@openttd.org>2012-04-17 19:43:23 +0000
committermichi_cc <michi_cc@openttd.org>2012-04-17 19:43:23 +0000
commitef8ee48044f6aad41bcbc647b7a86c02e6755988 (patch)
tree1c939ca949c36be0c07be2f3dbebd946487dc2db /src
parentaa47d6c7f2b18d5277ed8d1e47f078e6d73bc6b9 (diff)
downloadopenttd-ef8ee48044f6aad41bcbc647b7a86c02e6755988.tar.xz
(svn r24128) -Change: Don't let vehicles break down directly after servicing.
Diffstat (limited to 'src')
-rw-r--r--src/vehicle.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp
index 5f87b571e..8be891b2f 100644
--- a/src/vehicle.cpp
+++ b/src/vehicle.cpp
@@ -91,6 +91,8 @@ void VehicleServiceInDepot(Vehicle *v)
v->date_of_last_service = _date;
v->breakdowns_since_last_service = 0;
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
}