Skip to content

Commit 546b4c8

Browse files
committed
refactor: Fix spelling
1 parent aadcd83 commit 546b4c8

File tree

6 files changed

+52
-52
lines changed

6 files changed

+52
-52
lines changed

Source/Orts.Simulation/Simulation/AIs/AITrain.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -722,7 +722,7 @@ public void AIUpdate(float elapsedClockSeconds, double clockTime, bool preUpdate
722722

723723
if (Cars[0] is MSTSLocomotive leadingLoco)
724724
{
725-
var isRainingOrSnowing = Simulator.Weather.PricipitationIntensityPPSPM2 > 0;
725+
var isRainingOrSnowing = Simulator.Weather.PrecipitationIntensityPPSPM2 > 0;
726726
if (leadingLoco.Wiper && !isRainingOrSnowing)
727727
leadingLoco.SignalEvent(Event.WiperOff);
728728
else if (!leadingLoco.Wiper && isRainingOrSnowing)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3101,7 +3101,7 @@ public virtual void UpdateFrictionCoefficient(float elapsedClockSeconds)
31013101
{
31023102
var fogBaseFrictionCoefficientFactor = 1.0f;
31033103
var pricBaseFrictionCoefficientFactor = 1.0f;
3104-
float pric = Simulator.Weather.PricipitationIntensityPPSPM2 * 1000;
3104+
float pric = Simulator.Weather.PrecipitationIntensityPPSPM2 * 1000;
31053105
// precipitation will calculate a base coefficient value between 60% (light rain) and 90% (heavy rain) - this will be a factor that is used to adjust the base value
31063106
// assume linear value between upper and lower precipitation values. Limits are set in the weather module, ie Rain = 0.01ppm (10) and Snow = 0.005ppm (5)
31073107
float precGrad = (0.2f - 0) / (10f - 5f);

Source/Orts.Simulation/Simulation/Weather.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ public class Weather
3737
// Overcast factor: 0.0 = almost no clouds; 0.1 = wispy clouds; 1.0 = total overcast.
3838
public float OvercastFactor;
3939

40-
// Pricipitation intensity in particles per second per meter^2 (PPSPM2).
41-
public float PricipitationIntensityPPSPM2;
40+
// Precipitation intensity in particles per second per meter^2 (PPSPM2).
41+
public float PrecipitationIntensityPPSPM2;
4242

4343
// Fog/visibility distance. Ranges from 10m (can't see anything), 5km (medium), 20km (clear) to 100km (clear arctic).
4444
public float FogDistance;

Source/RunActivity/Viewer3D/Popups/HUDWindow.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// COPYRIGHT 2011, 2012, 2013 by the Open Rails project.
1+
// COPYRIGHT 2011, 2012, 2013 by the Open Rails project.
22
//
33
// This file is part of Open Rails.
44
//
@@ -1324,7 +1324,7 @@ void TextPageWeather(TableData table)
13241324

13251325
TableAddLabelValue(table, Viewer.Catalog.GetString("Visibility"), Viewer.Catalog.GetStringFmt("{0:N0} m", Viewer.Simulator.Weather.FogDistance));
13261326
TableAddLabelValue(table, Viewer.Catalog.GetString("Cloud cover"), Viewer.Catalog.GetStringFmt("{0:F0} %", Viewer.Simulator.Weather.OvercastFactor * 100));
1327-
TableAddLabelValue(table, Viewer.Catalog.GetString("Intensity"), Viewer.Catalog.GetStringFmt("{0:F4} p/s/m^2", Viewer.Simulator.Weather.PricipitationIntensityPPSPM2));
1327+
TableAddLabelValue(table, Viewer.Catalog.GetString("Intensity"), Viewer.Catalog.GetStringFmt("{0:F4} p/s/m^2", Viewer.Simulator.Weather.PrecipitationIntensityPPSPM2));
13281328
TableAddLabelValue(table, Viewer.Catalog.GetString("Liquidity"), Viewer.Catalog.GetStringFmt("{0:F0} %", Viewer.Simulator.Weather.PrecipitationLiquidity * 100));
13291329
TableAddLabelValue(table, Viewer.Catalog.GetString("Wind"), Viewer.Catalog.GetStringFmt("{0:F1},{1:F1} m/s", Viewer.Simulator.Weather.WindSpeedMpS.X, Viewer.Simulator.Weather.WindSpeedMpS.Y));
13301330
TableAddLabelValue(table, Viewer.Catalog.GetString("Amb Temp"), FormatStrings.FormatTemperature(Viewer.PlayerLocomotive.CarOutsideTempC, Viewer.PlayerLocomotive.IsMetric, false));

Source/RunActivity/Viewer3D/Precipitation.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public void PrepareFrame(RenderFrame frame, ElapsedTime elapsedTime)
6868
{
6969
var gameTime = (float)Viewer.Simulator.GameTime;
7070
Pricipitation.DynamicUpdate(WeatherControl, Weather, Viewer, ref Wind);
71-
Pricipitation.Update(gameTime, elapsedTime, Weather.PricipitationIntensityPPSPM2, Viewer);
71+
Pricipitation.Update(gameTime, elapsedTime, Weather.PrecipitationIntensityPPSPM2, Viewer);
7272

7373
// Note: This is quite a hack. We ideally should be able to pass this through RenderItem somehow.
7474
var XNAWorldLocation = Matrix.Identity;
@@ -89,7 +89,7 @@ public void Reset()
8989
var gameTime = (float)Viewer.Simulator.GameTime;
9090
Pricipitation.Initialize(Viewer.Simulator.WeatherType, Wind);
9191
// Camera is null during first initialisation.
92-
if (Viewer.Camera != null) Pricipitation.Update(gameTime, null, Weather.PricipitationIntensityPPSPM2, Viewer);
92+
if (Viewer.Camera != null) Pricipitation.Update(gameTime, null, Weather.PrecipitationIntensityPPSPM2, Viewer);
9393
}
9494

9595
[CallOnThread("Loader")]

0 commit comments

Comments
 (0)