Skip to content

Commit d1ff8fd

Browse files
committed
Removed changes in UserCommand, InputSettings and AITrain which caused merge errors.
1 parent 57a470c commit d1ff8fd

File tree

4 files changed

+12
-18
lines changed

4 files changed

+12
-18
lines changed

Source/ORTS.Common/Input/UserCommand.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ public enum UserCommand
8080
[GetString("Debug Precipitation Decrease")] DebugPrecipitationDecrease,
8181
[GetString("Debug Precipitation Liquidity Increase")] DebugPrecipitationLiquidityIncrease,
8282
[GetString("Debug Precipitation Liquidity Decrease")] DebugPrecipitationLiquidityDecrease,
83-
[GetString("Debug Request Stop Information")] DebugRequestStopInformation,
8483
[GetString("Debug Daylight Offset Increase")] DebugDaylightOffsetIncrease,
8584
[GetString("Debug Daylight Offset Decrease")] DebugDaylightOffsetDecrease,
8685
[GetString("Debug Weather Change")] DebugWeatherChange,

Source/ORTS.Settings/InputSettings.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,6 @@ static void InitializeCommands(UserCommandInput[] Commands)
490490
Commands[(int)UserCommand.DebugPrecipitationIncrease] = new UserCommandKeyInput(0x0D, KeyModifiers.Alt);
491491
Commands[(int)UserCommand.DebugPrecipitationLiquidityDecrease] = new UserCommandKeyInput(0x0C, KeyModifiers.Control | KeyModifiers.Alt);
492492
Commands[(int)UserCommand.DebugPrecipitationLiquidityIncrease] = new UserCommandKeyInput(0x0D, KeyModifiers.Control | KeyModifiers.Alt);
493-
Commands[(int)UserCommand.DebugRequestStopInformation] = new UserCommandKeyInput(0x44, KeyModifiers.Alt);
494493
Commands[(int)UserCommand.DebugResetWheelSlip] = new UserCommandKeyInput(0x2D, KeyModifiers.Alt);
495494
Commands[(int)UserCommand.DebugSignalling] = new UserCommandKeyInput(0x57, KeyModifiers.Control | KeyModifiers.Alt);
496495
Commands[(int)UserCommand.DebugSoundForm] = new UserCommandKeyInput(0x1F, KeyModifiers.Alt);

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2061,11 +2061,7 @@ public virtual void UpdateStationState(float elapsedClockSeconds, int presentTim
20612061
MovementState = AI_MOVEMENT_STATE.STOPPED_EXISTING;
20622062
if (TrainType != TRAINTYPE.AI_PLAYERHOSTING) AtStation = false;
20632063
}
2064-
2065-
if (thisStation.ArrivalTime >= 0)
2066-
{
2067-
Delay = TimeSpan.FromSeconds((presentTime - thisStation.DepartTime) % (24 * 3600));
2068-
}
2064+
Delay = TimeSpan.FromSeconds((presentTime - thisStation.DepartTime) % (24 * 3600));
20692065
}
20702066

20712067
#if DEBUG_REPORTS

Source/RunActivity/Viewer3D/Viewer.cs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1173,17 +1173,17 @@ void HandleUserInput(ElapsedTime elapsedTime)
11731173
Settings.Save();
11741174
}
11751175

1176-
//ALT-F10 : display request stop info for player train
1177-
if (UserInput.IsPressed(UserCommand.DebugRequestStopInformation))
1178-
{
1179-
if (PlayerTrain != null)
1180-
{
1181-
if (PlayerTrain.StationStops != null && PlayerTrain.StationStops.Count > 0 && PlayerTrain.StationStops[0].ReqStopDetails != null)
1182-
{
1183-
PlayerTrain.StationStops[0].ReqStopDetails.displayRQSInfo = true;
1184-
}
1185-
}
1186-
}
1176+
//ALT-F10 : display request stop info for player train - to be restored later when user setting can be defined
1177+
//if (UserInput.IsPressed(UserCommand.DebugRequestStopInformation))
1178+
//{
1179+
// if (PlayerTrain != null)
1180+
// {
1181+
// if (PlayerTrain.StationStops != null && PlayerTrain.StationStops.Count > 0 && PlayerTrain.StationStops[0].ReqStopDetails != null)
1182+
// {
1183+
// PlayerTrain.StationStops[0].ReqStopDetails.displayRQSInfo = true;
1184+
// }
1185+
// }
1186+
//}
11871187

11881188
//hit 9 key, get back to player train
11891189
if (UserInput.IsPressed(UserCommand.CameraJumpBackPlayer))

0 commit comments

Comments
 (0)