Merge branch 'improved_breakdowns-sx' into jgrpp

This commit is contained in:
Jonathan G Rennison
2015-09-27 23:18:40 +01:00
3 changed files with 15 additions and 6 deletions

View File

@@ -118,8 +118,6 @@ void VehicleServiceInDepot(Vehicle *v)
v->reliability = e->reliability;
v->breakdown_ctr = 0;
v->vehstatus &= ~VS_AIRCRAFT_BROKEN;
/* 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
do {
@@ -157,8 +155,6 @@ void VehicleServiceInDepot(Vehicle *v)
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;
v = v->Next();
} while (v != NULL && v->HasEngineType());
}