Change: Service depot also reset breakdown chance.

This commit is contained in:
Galigator 2020-09-25 09:26:37 +02:00 committed by Michael Lutz
parent 49b75d67bd
commit 933d02dce2
1 changed files with 1 additions and 0 deletions

View File

@ -170,6 +170,7 @@ void VehicleServiceInDepot(Vehicle *v)
v->reliability = v->GetEngine()->reliability;
/* Prevent vehicles from breaking down directly after exiting the depot. */
v->breakdown_chance /= 4;
if (_settings_game.difficulty.vehicle_breakdowns == 1) v->breakdown_chance = 0; // on reduced breakdown
v = v->Next();
} while (v != nullptr && v->HasEngineType());
}