Skip to content

Commit b731488

Browse files
committed
Fix an issue with auxiliary water tender water level not being restored correctly.
1 parent 76abf4e commit b731488

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,8 @@ public enum SoundState
173173
public float MaxTotalCombinedWaterVolumeUKG;
174174
public MSTSNotchController WaterController = new MSTSNotchController(0, 1, 0.01f);
175175
public float CombinedTenderWaterVolumeUKG // Decreased by running injectors and increased by refilling
176-
{
177-
get { return WaterController.CurrentValue* MaxTotalCombinedWaterVolumeUKG; }
176+
{
177+
get { return WaterController.CurrentValue * MaxTotalCombinedWaterVolumeUKG; }
178178
set { WaterController.CurrentValue = value / MaxTotalCombinedWaterVolumeUKG; }
179179
}
180180

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1400,8 +1400,8 @@ public override void Initialize()
14001400

14011401
if (RestoredCombinedTenderWaterVolumeUKG > 1.0)// Check to see if this is a restored game -(assumed so if Restored >0), then set water controller values based upon saved values
14021402
{
1403-
CombinedTenderWaterVolumeUKG = RestoredCombinedTenderWaterVolumeUKG;
14041403
MaxTotalCombinedWaterVolumeUKG = RestoredMaxTotalCombinedWaterVolumeUKG;
1404+
CombinedTenderWaterVolumeUKG = RestoredCombinedTenderWaterVolumeUKG;
14051405
}
14061406

14071407
InitializeTenderWithWater();

0 commit comments

Comments
 (0)