From ef8ee48044f6aad41bcbc647b7a86c02e6755988 Mon Sep 17 00:00:00 2001 From: michi_cc Date: Tue, 17 Apr 2012 19:43:23 +0000 Subject: (svn r24128) -Change: Don't let vehicles break down directly after servicing. --- src/vehicle.cpp | 2 ++ 1 file changed, 2 insertions(+) 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 } -- cgit v1.2.3-70-g09d2