You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Automatic merge of T1.5.1-1090-g9915d87ce6 and 21 pull requests
- Pull request #891 at 9a1d6b2: Auto save
- Pull request #959 at 2452cb0: Fix TrackViewer crash on big zoom value
- Pull request #972 at e90a2aa: On Map window color changed switch or signal is not changed
- Pull request #976 at 877cc94: Increased center of gravity range
- Pull request #839 at d00beb9: First phase of https://blueprints.launchpad.net/or/+spec/additional-cruise-control-parameters
- Pull request #882 at 8f695a4: Blueprint/train car operations UI window
- Pull request #892 at 1f5ba4c: Signal Function OPP_SIG_ID_TRAINPATH
- Pull request #922 at a3bc9e7: Autopilot for timetable mode
- Pull request #953 at a519452: Fix Lights Crash on Corrupt Shapes
- Pull request #954 at 588a3c2: Multiple Track Profiles & Superelevation Improvements
- Pull request #962 at 46d0472: Fix pantographs on unpowered cars
- Pull request #970 at 6fa5eed: feat: Remove unnecessary Windows.Forms usage
- Pull request #973 at c35be87: fix: Using singular target framework to allow for different platforms across different projects
- Pull request #974 at 5faea6f: Bug fix for https://bugs.launchpad.net/or/+bug/2076034 Doors remain open in AI trains
- Pull request #977 at a30c659: adds cache for SD files
- Pull request #978 at 91f3ee8: fix: adds MilepostUnitsMiles to Manual
- Pull request #900 at c27f32d: DMI updates
- Pull request #903 at 4a4b032: Downloading route content (Github, zip)
- Pull request #799 at dfc715e: Consolidated wind simulation
- Pull request #876 at f92de76: docs: add source for documents previously on website to source Documentation folder
- Pull request #952 at 8347095: Investigation - Pulsing graphics
IsMaxSafeCurveSpeed=true;// set flag for IsMaxSafeCurveSpeed reached
1922
-
1923
-
if(Train.IsFreight)
1924
1920
{
1921
+
IsMaxSafeCurveSpeed=true;// set flag for IsMaxSafeCurveSpeed reached
1922
+
1923
+
if(Train.IsFreight)
1924
+
{
1925
1925
Simulator.Confirmer.Message(ConfirmLevel.Warning,Simulator.Catalog.GetStringFmt("You are travelling too fast for this curve, your freight car {0} may be damaged. The recommended speed for this curve is {1}",CarID,FormatStrings.FormatSpeedDisplay(MaxSafeCurveSpeedMps,IsMetric)));
1926
-
}
1927
-
else
1928
-
{
1926
+
}
1927
+
else
1928
+
{
1929
1929
Simulator.Confirmer.Message(ConfirmLevel.Warning,Simulator.Catalog.GetStringFmt("You are travelling too fast for this curve, your passengers in car {0} are feeling uncomfortable. The recommended speed for this curve is {1}",CarID,FormatStrings.FormatSpeedDisplay(MaxSafeCurveSpeedMps,IsMetric)));
// If speed exceeds the overturning speed, then indicated that an error condition has been reached.
1954
+
// If speed exceeds the overturning speed, then indicated that an error condition has been reached.
1955
1955
if(s>CriticalMaxSpeedMpS)
1956
-
{
1957
-
if(!IsCriticalMaxSpeed)
1958
1956
{
1959
-
IsCriticalMaxSpeed=true;// set flag for IsCriticalSpeed reached
1957
+
if(!IsCriticalMaxSpeed)
1958
+
{
1959
+
IsCriticalMaxSpeed=true;// set flag for IsCriticalSpeed reached
1960
1960
1961
-
BrakeSystem.FrontBrakeHoseConnected=false;// break the brake hose connection between cars if the speed is too fast
1962
-
Simulator.Confirmer.Message(ConfirmLevel.Warning,Simulator.Catalog.GetString("You were travelling too fast for this curve, and have snapped a brake hose on Car "+CarID+". You will need to repair the hose and restart."));
1961
+
BrakeSystem.FrontBrakeHoseConnected=false;// break the brake hose connection between cars if the speed is too fast
1962
+
Simulator.Confirmer.Message(ConfirmLevel.Warning,Simulator.Catalog.GetString("You were travelling too fast for this curve, and have snapped a brake hose on Car "+CarID+". You will need to repair the hose and restart."));
1963
1963
1964
-
dbfEvalsnappedbrakehose=true;//Debrief eval
1964
+
dbfEvalsnappedbrakehose=true;//Debrief eval
1965
1965
1966
-
if(!ldbfevaltrainoverturned)
1967
-
{
1968
-
ldbfevaltrainoverturned=true;
1969
-
DbfEvalTrainOverturned++;
1966
+
if(!ldbfevaltrainoverturned)
1967
+
{
1968
+
ldbfevaltrainoverturned=true;
1969
+
DbfEvalTrainOverturned++;
1970
1970
Train.DbfEvalValueChanged=true;//Debrief eval
1971
+
}
1971
1972
}
1972
-
}
1973
1973
1974
-
}
1975
-
elseif(s<CriticalMaxSpeedMpS-SpeedToleranceMpS)// Reset notification once speed drops
1976
-
{
1977
-
if(IsCriticalMaxSpeed)
1974
+
}
1975
+
elseif(s<CriticalMaxSpeedMpS-SpeedToleranceMpS)// Reset notification once speed drops
1978
1976
{
1979
-
IsCriticalMaxSpeed=false;// reset flag for IsCriticalSpeed reached - if speed on curve decreases
// if speed doesn't reach minimum speed required around the curve then set notification
1993
-
// Breaking of brake hose will not apply to TT mode or AI trains or if on a curve less then 150m to cover operation in shunting yards, where track would mostly have no superelevation
1992
+
// if speed doesn't reach minimum speed required around the curve then set notification
1993
+
// Breaking of brake hose will not apply to TT mode or AI trains or if on a curve less then 150m to cover operation in shunting yards, where track would mostly have no superelevation
1994
1994
//if (s < CriticalMinSpeedMpS && CurrentCurveRadiusM > 150)
1995
1995
//{
1996
-
// if (!IsCriticalMinSpeed)
1997
-
// {
1998
-
// IsCriticalMinSpeed = true; // set flag for IsCriticalSpeed not reached
1996
+
// if (!IsCriticalMinSpeed)
1997
+
// {
1998
+
// IsCriticalMinSpeed = true; // set flag for IsCriticalSpeed not reached
1999
1999
2000
-
// Simulator.Confirmer.Message(ConfirmLevel.Warning, Simulator.Catalog.GetString("You were travelling too slow for this curve, and Car " + CarID + "may topple over."));
2001
-
// }
2000
+
// Simulator.Confirmer.Message(ConfirmLevel.Warning, Simulator.Catalog.GetString("You were travelling too slow for this curve, and Car " + CarID + "may topple over."));
2001
+
// }
2002
2002
2003
2003
//}
2004
2004
//else if (s > CriticalMinSpeedMpS + SpeedToleranceMpS) // Reset notification once speed increases
2005
2005
//{
2006
-
// if (IsCriticalMinSpeed)
2007
-
// {
2008
-
// IsCriticalMinSpeed = false; // reset flag for IsCriticalSpeed reached - if speed on curve decreases
2009
-
// }
2006
+
// if (IsCriticalMinSpeed)
2007
+
// {
2008
+
// IsCriticalMinSpeed = false; // reset flag for IsCriticalSpeed reached - if speed on curve decreases
0 commit comments