Changeset - r19225:c4e5e87d718e
[Not reviewed]
master
0 1 0
michi_cc - 12 years ago 2012-04-17 19:43:23
michi_cc@openttd.org
(svn r24128) -Change: Don't let vehicles break down directly after servicing.
1 file changed with 2 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/vehicle.cpp
Show inline comments
 
@@ -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
 
}
 

	
0 comments (0 inline, 0 general)