Skip to content

Commit d5ae4a7

Browse files
committed
Fix bug with service retention cancellation
1 parent c064a55 commit d5ae4a7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Source/RunActivity/Viewer3D/RollingStock/MSTSDieselLocomotiveViewer.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// COPYRIGHT 2009, 2010, 2011, 2012, 2013, 2014 by the Open Rails project.
1+
// COPYRIGHT 2009, 2010, 2011, 2012, 2013, 2014 by the Open Rails project.
22
//
33
// This file is part of Open Rails.
44
//
@@ -88,7 +88,7 @@ public override void InitializeUserInputCommands()
8888
});
8989
UserInputCommands.Add(UserCommand.ControlMasterKey, new Action[] { Noop, () => new ToggleMasterKeyCommand(Viewer.Log, !DieselLocomotive.LocomotivePowerSupply.MasterKey.CommandSwitch) });
9090
UserInputCommands.Add(UserCommand.ControlServiceRetention, new Action[] { () => new ServiceRetentionButtonCommand(Viewer.Log, false), () => new ServiceRetentionButtonCommand(Viewer.Log, true) });
91-
UserInputCommands.Add(UserCommand.ControlServiceRetentionCancellation, new Action[] { () => new ServiceRetentionCancellationButtonCommand(Viewer.Log, false), () => new ServiceRetentionButtonCommand(Viewer.Log, true) });
91+
UserInputCommands.Add(UserCommand.ControlServiceRetentionCancellation, new Action[] { () => new ServiceRetentionCancellationButtonCommand(Viewer.Log, false), () => new ServiceRetentionCancellationButtonCommand(Viewer.Log, true) });
9292
UserInputCommands.Add(UserCommand.ControlElectricTrainSupply, new Action[] { Noop, () => new ElectricTrainSupplyCommand(Viewer.Log, !DieselLocomotive.LocomotivePowerSupply.ElectricTrainSupplySwitch.CommandSwitch) });
9393
UserInputCommands.Add(UserCommand.ControlTractionCutOffRelayClosingOrder, new Action[] {
9494
() => new TractionCutOffRelayClosingOrderButtonCommand(Viewer.Log, false),

Source/RunActivity/Viewer3D/RollingStock/MSTSElectricLocomotiveViewer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public override void InitializeUserInputCommands()
9090
});
9191
UserInputCommands.Add(UserCommand.ControlMasterKey, new Action[] { Noop, () => new ToggleMasterKeyCommand(Viewer.Log, !ElectricLocomotive.LocomotivePowerSupply.MasterKey.CommandSwitch) });
9292
UserInputCommands.Add(UserCommand.ControlServiceRetention, new Action[] { () => new ServiceRetentionButtonCommand(Viewer.Log, false), () => new ServiceRetentionButtonCommand(Viewer.Log, true) });
93-
UserInputCommands.Add(UserCommand.ControlServiceRetentionCancellation, new Action[] { () => new ServiceRetentionCancellationButtonCommand(Viewer.Log, false), () => new ServiceRetentionButtonCommand(Viewer.Log, true) });
93+
UserInputCommands.Add(UserCommand.ControlServiceRetentionCancellation, new Action[] { () => new ServiceRetentionCancellationButtonCommand(Viewer.Log, false), () => new ServiceRetentionCancellationButtonCommand(Viewer.Log, true) });
9494
UserInputCommands.Add(UserCommand.ControlElectricTrainSupply, new Action[] { Noop, () => new ElectricTrainSupplyCommand(Viewer.Log, !ElectricLocomotive.LocomotivePowerSupply.ElectricTrainSupplySwitch.CommandSwitch) });
9595
UserInputCommands.Add(UserCommand.ControlCircuitBreakerClosingOrder, new Action[] {
9696
() => new CircuitBreakerClosingOrderButtonCommand(Viewer.Log, false),

0 commit comments

Comments
 (0)