Skip to content

Commit 88d0be9

Browse files
authored
Merge pull request #598 from cjakeman/menu-options02k
02k: Removed menu option Override non-electrified route line-voltage
2 parents e8acdc8 + ecb2954 commit 88d0be9

File tree

8 files changed

+1
-30
lines changed

8 files changed

+1
-30
lines changed

Source/Documentation/Manual/options.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -375,10 +375,6 @@ displayed as a message. This option is described in detail
375375
:ref:`here <physics-curve-speed-limit-application>` (OR application).
376376
OR does not display the damage.
377377

378-
Run electric locos on non-electrified routes
379-
--------------------------------------------
380-
381-
This option allows the running of electric locomotives on non-electrified routes.
382378

383379
Steam locomotive hot start
384380
--------------------------

Source/Menu/Options.Designer.cs

Lines changed: 0 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Source/Menu/Options.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,6 @@ public OptionsForm(UserSettings settings, UpdateManager updateManager, bool init
188188
numericAdhesionMovingAverageFilterSize.Value = Settings.AdhesionMovingAverageFilterSize;
189189
checkBreakCouplers.Checked = Settings.BreakCouplers;
190190
checkCurveSpeedDependent.Checked = Settings.CurveSpeedDependent;
191-
checkOverrideNonElectrifiedRoutes.Checked = Settings.OverrideNonElectrifiedRoutes;
192191
checkHotStart.Checked = Settings.HotStart;
193192
checkForcedRedAtStationStops.Checked = !Settings.NoForcedRedAtStationStops;
194193
checkDoorsAITrains.Checked = Settings.OpenDoorsInAITrains;
@@ -463,7 +462,6 @@ void buttonOK_Click(object sender, EventArgs e)
463462
Settings.AdhesionMovingAverageFilterSize = (int)numericAdhesionMovingAverageFilterSize.Value;
464463
Settings.BreakCouplers = checkBreakCouplers.Checked;
465464
Settings.CurveSpeedDependent = checkCurveSpeedDependent.Checked;
466-
Settings.OverrideNonElectrifiedRoutes = checkOverrideNonElectrifiedRoutes.Checked;
467465
Settings.HotStart = checkHotStart.Checked;
468466
Settings.NoForcedRedAtStationStops = !checkForcedRedAtStationStops.Checked;
469467
Settings.OpenDoorsInAITrains = checkDoorsAITrains.Checked;

Source/ORTS.Settings/UserSettings.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,8 +240,6 @@ public enum DirectXFeature
240240
public bool TunnelResistanceDependent { get; set; }
241241
[Default(false)]
242242
public bool WindResistanceDependent { get; set; }
243-
[Default(false)]
244-
public bool OverrideNonElectrifiedRoutes { get; set; }
245243
[Default(true)]
246244
public bool HotStart { get; set; }
247245
[Default(false)]

Source/Orts.Simulation/Simulation/RollingStocks/MSTSElectricLocomotive.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,6 @@ public override void Restore(BinaryReader inf)
109109

110110
public override void Initialize()
111111
{
112-
if (!ElectricPowerSupply.RouteElectrified)
113-
Trace.WriteLine("Warning: The route is not electrified. Electric driven trains will not run!");
114-
115112
base.Initialize();
116113

117114
// If DrvWheelWeight is not in ENG file, then calculate drivewheel weight freom FoA

Source/Orts.Simulation/Simulation/RollingStocks/SubSystems/PowerSupplies/DualModePowerSupply.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ public class ScriptedDualModePowerSupply : ScriptedLocomotivePowerSupply
3434
public bool Activated = false;
3535
private DualModePowerSupply Script => AbstractScript as DualModePowerSupply;
3636

37-
public bool RouteElectrified => Simulator.TRK.Tr_RouteFile.Electrified || Simulator.Settings.OverrideNonElectrifiedRoutes;
3837
public float LineVoltageV => (float)Simulator.TRK.Tr_RouteFile.MaxLineVoltage;
3938
public float PantographVoltageV { get; set; }
4039
public float FilterVoltageV { get; set; } = 0;

Source/Orts.Simulation/Simulation/RollingStocks/SubSystems/PowerSupplies/ElectricPowerSupply.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ public class ScriptedElectricPowerSupply : ScriptedLocomotivePowerSupply
3434
public bool Activated = false;
3535
private ElectricPowerSupply Script => AbstractScript as ElectricPowerSupply;
3636

37-
public bool RouteElectrified => Simulator.TRK.Tr_RouteFile.Electrified || Simulator.Settings.OverrideNonElectrifiedRoutes;
3837
public float LineVoltageV => (float)Simulator.TRK.Tr_RouteFile.MaxLineVoltage;
3938
public float PantographVoltageV { get; set; }
4039
public float FilterVoltageV { get; set; } = 0;

Source/Orts.Simulation/Simulation/RollingStocks/SubSystems/PowerSupplies/Pantograph.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -366,11 +366,8 @@ public void HandleEvent(PowerSupplyEvent evt)
366366
break;
367367
}
368368

369-
370369
if (!Simulator.TRK.Tr_RouteFile.Electrified)
371-
Simulator.Confirmer.Warning(Simulator.Catalog.GetString("No power line!"));
372-
if (Simulator.Settings.OverrideNonElectrifiedRoutes)
373-
Simulator.Confirmer.Information(Simulator.Catalog.GetString("Power line condition overridden."));
370+
Simulator.Confirmer.Information(Simulator.Catalog.GetString("Pantograph raised even though this route is not electrified"));
374371
}
375372
break;
376373
}

0 commit comments

Comments
 (0)