diff --git a/src/Devices/AtcBombardier.cs b/src/Devices/AtcBombardier.cs
index f988743..f399635 100644
--- a/src/Devices/AtcBombardier.cs
+++ b/src/Devices/AtcBombardier.cs
@@ -58,25 +58,25 @@ namespace OpenbveFcmbTrainPlugin
private TrackStates TrackState;
/// The time needed by the ATC device to initialize, in seconds.
- private double InitializationTime;
+ private readonly double InitializationTime;
/// A counter to keep track of initialization time, in seconds.
private double InitializationCounter;
/// The blinking time for lamps, in milliseconds.
- private double BlinkTime;
+ private readonly double BlinkTime;
/// A counter to keep track of blink time, in milliseconds.
private double BlinkCounter;
/// The time after which YARD mode enters idle state and engages the service brake, in seconds.
- private double YardIdleTime;
+ private readonly double YardIdleTime;
/// A counter to keep track of YARD mode idle time, in seconds.
private double YardIdleCounter;
/// The maximum speed in YARD mode, in km/h.
- private double YardMaximumSpeed;
+ private readonly double YardMaximumSpeed;
/// Represents an ATC movement permission order.
private class MovementPermission
diff --git a/src/Devices/AtcDimetronic.cs b/src/Devices/AtcDimetronic.cs
index 3f834f8..ae59c1d 100644
--- a/src/Devices/AtcDimetronic.cs
+++ b/src/Devices/AtcDimetronic.cs
@@ -50,7 +50,7 @@ namespace OpenbveFcmbTrainPlugin
private TrackStates TrackState;
/// The maximum speed in YARD mode, in km/h.
- private double YardMaximumSpeed;
+ private readonly double YardMaximumSpeed;
/// Represents an ATC speed code.
private class SpeedCode
diff --git a/src/Devices/Deadman.cs b/src/Devices/Deadman.cs
index 13cb93a..5800cda 100644
--- a/src/Devices/Deadman.cs
+++ b/src/Devices/Deadman.cs
@@ -24,10 +24,10 @@ namespace OpenbveFcmbTrainPlugin
private double Counter;
/// The delay time until the service brake is applied, in seconds.
- private double BrakeDelay = 5.0;
+ private readonly double BrakeDelay = 5.0;
/// Whether the train must be completely stopped to release the brakes.
- private bool FullReset;
+ private readonly bool FullReset;
/// Creates an instance of the Deadman device.
/// The delay before the brakes are applied, in seconds.