summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGaligator <Galigator@users.noreply.github.com>2020-09-25 09:26:37 +0200
committerMichael Lutz <michi@icosahedron.de>2020-09-25 22:38:58 +0200
commit933d02dce217d13074e189284bb1b3654b9186ac (patch)
tree8b920ab22d4578343e677246158b0590c8f82ba5
parent49b75d67bd3b13016d06f884bb66c14063d3f722 (diff)
downloadopenttd-933d02dce217d13074e189284bb1b3654b9186ac.tar.xz
Change: Service depot also reset breakdown chance.
-rw-r--r--src/vehicle.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp
index a458b1c65..3ed7cb1b0 100644
--- a/src/vehicle.cpp
+++ b/src/vehicle.cpp
@@ -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());
}