Skip to content

Commit b4db9a6

Browse files
authored
Merge branch 'openrails:master' into master
2 parents 8873f56 + 7b73c48 commit b4db9a6

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Source/Orts.Simulation/Simulation/RollingStocks/MSTSWagon.cs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1836,14 +1836,15 @@ public override void Update(float elapsedClockSeconds)
18361836
if (TendersSteamLocomotive != null)
18371837
{
18381838
if (TendersSteamLocomotive.IsTenderRequired == 1)
1839-
{
1840-
TendersSteamLocomotive.MaxTenderCoalMassKG = TenderWagonMaxCoalMassKG;
1841-
1839+
{
18421840
// Combined total water found by taking the current combined water (which may have extra water added via the auxiliary tender), and subtracting the
1843-
// amount of water defined in the ENG file, and adding the water defiend in the WAG file.
1841+
// amount of water defined in the ENG file, and adding the water defined in the WAG file.
18441842
float TempMaxCombinedWater = TendersSteamLocomotive.MaxTotalCombinedWaterVolumeUKG;
18451843
TendersSteamLocomotive.MaxTotalCombinedWaterVolumeUKG = (TempMaxCombinedWater - (Kg.ToLb(TendersSteamLocomotive.MaxLocoTenderWaterMassKG) / WaterLBpUKG)) + (Kg.ToLb(TenderWagonMaxWaterMassKG) / WaterLBpUKG);
18461844

1845+
TendersSteamLocomotive.MaxTenderCoalMassKG = TenderWagonMaxCoalMassKG;
1846+
TendersSteamLocomotive.MaxLocoTenderWaterMassKG = TenderWagonMaxWaterMassKG;
1847+
18471848
if (Simulator.Settings.VerboseConfigurationMessages)
18481849
{
18491850
Trace.TraceInformation("Fuel and Water Masses adjusted to Tender Values Specified in WAG File - Coal mass {0} kg, Water Mass {1}", FormatStrings.FormatMass(TendersSteamLocomotive.MaxTenderCoalMassKG, IsMetric), FormatStrings.FormatFuelVolume(L.FromGUK(TendersSteamLocomotive.MaxTotalCombinedWaterVolumeUKG), IsMetric, IsUK));

Source/Orts.Simulation/Simulation/Signalling/Signals.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
using Orts.Parsers.Msts;
3333
using Orts.Simulation.AIs;
3434
using Orts.Simulation.Physics;
35-
using Orts.Simulation.Timetables;
3635
using ORTS.Common;
3736
using System;
3837
using System.Collections.Generic;
@@ -1245,7 +1244,7 @@ private void AddWorldInfo()
12451244
{
12461245
if (signal != null)
12471246
{
1248-
if (signal.isSignal)
1247+
if (signal.isSignal || signal.isSpeedSignal)
12491248
{
12501249
foreach (SignalHead head in signal.SignalHeads)
12511250
{

0 commit comments

Comments
 (0)