Skip to content

Commit a0bd9ec

Browse files
committed
Style changes and iput key corrected
1 parent ce3490b commit a0bd9ec

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Source/ORTS.Settings/InputSettings.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ static void InitializeCommands(UserCommandInput[] Commands)
357357
Commands[(int)UserCommand.ControlSteamHeatDecrease] = new UserCommandKeyInput(0x20, KeyModifiers.Alt);
358358
Commands[(int)UserCommand.ControlSteamHeatIncrease] = new UserCommandKeyInput(0x16, KeyModifiers.Alt);
359359
Commands[(int)UserCommand.ControlSteamBoosterDecrease] = new UserCommandKeyInput(0x11, KeyModifiers.Shift);
360-
Commands[(int)UserCommand.ControlSteamBoosterIncrease] = new UserCommandKeyInput(0x11, KeyModifiers.Control);
360+
Commands[(int)UserCommand.ControlSteamBoosterIncrease] = new UserCommandKeyInput(0x11, KeyModifiers.Alt);
361361
Commands[(int)UserCommand.ControlBrakeHoseConnect] = new UserCommandKeyInput(0x2B);
362362
Commands[(int)UserCommand.ControlBrakeHoseDisconnect] = new UserCommandKeyInput(0x2B, KeyModifiers.Shift);
363363
Commands[(int)UserCommand.ControlCabRadio] = new UserCommandKeyInput(0x13, KeyModifiers.Alt);

Source/Orts.Simulation/Simulation/RollingStocks/MSTSSteamLocomotive.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7201,7 +7201,7 @@ public void StartSteamBoosterIncrease(float? target)
72017201
{
72027202
SteamBoosterController.CommandStartTime = Simulator.ClockTime;
72037203
if (IsPlayerTrain)
7204-
Simulator.Confirmer.ConfirmWithPerCent(CabControl.SteamBooster, CabSetting.Increase, SteamBoosterController.CurrentValue* 100);
7204+
Simulator.Confirmer.ConfirmWithPerCent(CabControl.SteamBooster, CabSetting.Increase, SteamBoosterController.CurrentValue * 100);
72057205
SteamBoosterController.StartIncrease(target);
72067206
SignalEvent(Event.SteamBoosterChange);
72077207
}
@@ -7334,7 +7334,7 @@ public void StartLargeEjectorIncrease(float? target)
73347334
{
73357335
LargeEjectorController.CommandStartTime = Simulator.ClockTime;
73367336
if (IsPlayerTrain)
7337-
Simulator.Confirmer.ConfirmWithPerCent(CabControl.LargeEjector, CabSetting.Increase, LargeEjectorController.CurrentValue* 100);
7337+
Simulator.Confirmer.ConfirmWithPerCent(CabControl.LargeEjector, CabSetting.Increase, LargeEjectorController.CurrentValue * 100);
73387338
LargeEjectorController.StartIncrease(target);
73397339
SignalEvent(Event.LargeEjectorChange);
73407340
}
@@ -7348,7 +7348,7 @@ public void StopLargeEjectorIncrease()
73487348
public void StartLargeEjectorDecrease(float? target)
73497349
{
73507350
if (IsPlayerTrain)
7351-
Simulator.Confirmer.ConfirmWithPerCent(CabControl.LargeEjector, CabSetting.Decrease, LargeEjectorController.CurrentValue* 100);
7351+
Simulator.Confirmer.ConfirmWithPerCent(CabControl.LargeEjector, CabSetting.Decrease, LargeEjectorController.CurrentValue * 100);
73527352
LargeEjectorController.StartDecrease(target);
73537353
SignalEvent(Event.LargeEjectorChange);
73547354
}
@@ -7388,7 +7388,7 @@ public void SetLargeEjectorValue(float value)
73887388
new ContinuousLargeEjectorCommand(Simulator.Log, 1, change > 0, controller.CurrentValue, Simulator.GameTime);
73897389
}
73907390
if (oldValue != controller.IntermediateValue)
7391-
Simulator.Confirmer.UpdateWithPerCent(CabControl.LargeEjector, oldValue<controller.IntermediateValue? CabSetting.Increase : CabSetting.Decrease, controller.CurrentValue* 100);
7391+
Simulator.Confirmer.UpdateWithPerCent(CabControl.LargeEjector, oldValue<controller.IntermediateValue? CabSetting.Increase : CabSetting.Decrease, controller.CurrentValue * 100);
73927392
}
73937393

73947394
#endregion

0 commit comments

Comments
 (0)