Skip to content

Commit 4c26d6d

Browse files
authored
Merge pull request #734 from Sharpe49/fix/battery-switch-timer
Fixed battery switch timer not working properly
2 parents 3fcf680 + 8f8484c commit 4c26d6d

File tree

1 file changed

+1
-1
lines changed
  • Source/Orts.Simulation/Simulation/RollingStocks/SubSystems/PowerSupplies

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ public BatterySwitch(MSTSWagon wagon)
4848
Wagon = wagon;
4949

5050
Timer = new Timer(Wagon);
51-
Timer.Setup(DelayS);
5251
}
5352

5453
public virtual void Parse(string lowercasetoken, STFReader stf)
@@ -91,6 +90,7 @@ public void Copy(BatterySwitch other)
9190

9291
public virtual void Initialize()
9392
{
93+
Timer.Setup(DelayS);
9494
}
9595

9696
/// <summary>

0 commit comments

Comments
 (0)