Skip to content

Commit 1f23512

Browse files
committed
Fix initialization of multiple parameters by copying from loaded engine
1 parent 992cc97 commit 1f23512

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

Source/Orts.Simulation/Simulation/RollingStocks/MSTSLocomotive.cs

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1226,16 +1226,28 @@ public override void Copy(MSTSWagon copy)
12261226
CompressorRestartPressurePSI = locoCopy.CompressorRestartPressurePSI;
12271227
CompressorIsMUControlled = locoCopy.CompressorIsMUControlled;
12281228
TrainBrakePipeLeakPSIorInHgpS = locoCopy.TrainBrakePipeLeakPSIorInHgpS;
1229+
BrakePipeTimeFactorS = locoCopy.BrakePipeTimeFactorS;
1230+
BrakeServiceTimeFactorPSIpS = locoCopy.BrakeServiceTimeFactorPSIpS;
1231+
BrakeEmergencyTimeFactorPSIpS = locoCopy.BrakeEmergencyTimeFactorPSIpS;
1232+
BrakePipeChargingRatePSIorInHgpS = locoCopy.BrakePipeChargingRatePSIorInHgpS;
1233+
BrakePipeQuickChargingRatePSIpS = locoCopy.BrakePipeQuickChargingRatePSIpS;
12291234
MaxMainResPressurePSI = locoCopy.MaxMainResPressurePSI;
12301235
MainResPressurePSI = locoCopy.MaxMainResPressurePSI;
12311236
MaximumMainReservoirPipePressurePSI = locoCopy.MaximumMainReservoirPipePressurePSI;
12321237
MainResVolumeM3 = locoCopy.MainResVolumeM3;
12331238
MainResChargingRatePSIpS = locoCopy.MainResChargingRatePSIpS;
1239+
EngineBrakeApplyRatePSIpS = locoCopy.EngineBrakeApplyRatePSIpS;
1240+
EngineBrakeReleaseRatePSIpS = locoCopy.EngineBrakeReleaseRatePSIpS;
12341241
BrakePipeDischargeTimeFactor = locoCopy.BrakePipeDischargeTimeFactor;
12351242
DriveWheelOnlyBrakes = locoCopy.DriveWheelOnlyBrakes;
12361243
DynamicBrakeBlendingEnabled = locoCopy.DynamicBrakeBlendingEnabled;
12371244
DynamicBrakeAvailable = locoCopy.DynamicBrakeAvailable;
12381245
airPipeSystem = locoCopy.airPipeSystem;
1246+
DoesVacuumBrakeCutPower = locoCopy.DoesBrakeCutPower;
1247+
DoesBrakeCutPower = locoCopy.DoesBrakeCutPower;
1248+
BrakeCutsPowerAtBrakeCylinderPressurePSI = locoCopy.BrakeCutsPowerAtBrakeCylinderPressurePSI;
1249+
BrakeCutsPowerAtBrakePipePressurePSI = locoCopy.BrakeCutsPowerAtBrakePipePressurePSI;
1250+
BrakeRestoresPowerAtBrakePipePressurePSI = locoCopy.BrakeRestoresPowerAtBrakePipePressurePSI;
12391251
DynamicBrakeCommandStartTime = locoCopy.DynamicBrakeCommandStartTime;
12401252
DynamicBrakeBlendingOverride = locoCopy.DynamicBrakeBlendingOverride;
12411253
DynamicBrakeBlendingForceMatch = locoCopy.DynamicBrakeBlendingForceMatch;
@@ -1244,6 +1256,7 @@ public override void Copy(MSTSWagon copy)
12441256
MainPressureUnit = locoCopy.MainPressureUnit;
12451257
BrakeSystemPressureUnits = locoCopy.BrakeSystemPressureUnits;
12461258
IsDriveable = copy.IsDriveable;
1259+
EngineOperatingProcedures = locoCopy.EngineOperatingProcedures;
12471260

12481261
ThrottleController = (MSTSNotchController)locoCopy.ThrottleController.Clone();
12491262
SteamHeatController = (MSTSNotchController)locoCopy.SteamHeatController.Clone();
@@ -1261,9 +1274,14 @@ public override void Copy(MSTSWagon copy)
12611274
}
12621275
else
12631276
DPDynamicBrakeController = null;
1277+
DPSyncTrainApplication = locoCopy.DPSyncTrainApplication;
1278+
DPSyncTrainRelease = locoCopy.DPSyncTrainRelease;
1279+
DPSyncEmergency = locoCopy.DPSyncEmergency;
1280+
DPSyncIndependent = locoCopy.DPSyncIndependent;
12641281

12651282
LocomotivePowerSupply.Copy(locoCopy.LocomotivePowerSupply);
12661283
TrainControlSystem.Copy(locoCopy.TrainControlSystem);
1284+
VigilanceMonitor = locoCopy.VigilanceMonitor;
12671285
LocomotiveName = locoCopy.LocomotiveName;
12681286
MaxVaccuumMaxPressurePSI = locoCopy.MaxVaccuumMaxPressurePSI;
12691287
VacuumBrakeEQFitted = locoCopy.VacuumBrakeEQFitted;
@@ -1277,6 +1295,8 @@ public override void Copy(MSTSWagon copy)
12771295
WaterScoopWidthM = locoCopy.WaterScoopWidthM;
12781296
CruiseControl = locoCopy.CruiseControl?.Clone(this);
12791297
MultiPositionControllers = locoCopy.CloneMPC(this);
1298+
OnLineCabRadio = locoCopy.OnLineCabRadio;
1299+
OnLineCabRadioURL = locoCopy.OnLineCabRadioURL;
12801300
}
12811301

12821302
/// <summary>

0 commit comments

Comments
 (0)