Skip to content

Commit 9508412

Browse files
author
Chris Jakeman
committed
Adds DbfEvalAutoPilot to F2 Save and Resume
1 parent 99c6474 commit 9508412

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Source/RunActivity/Viewer3D/Processes/GameStateRunActivity.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,7 @@ private static void SaveEvaluation(BinaryWriter outf)
434434
outf.Write(Viewer.DbfEvalAutoPilotTimeS);
435435
outf.Write(Viewer.DbfEvalIniAutoPilotTimeS);
436436
outf.Write(Simulator.PlayerLocomotive.DistanceM + Popups.HelpWindow.DbfEvalDistanceTravelled);
437+
outf.Write(Viewer.DbfEvalAutoPilot);
437438
}
438439

439440
/// <summary>
@@ -531,6 +532,7 @@ private static void ResumeEvaluation(BinaryReader infDbfEval)
531532
Viewer.DbfEvalAutoPilotTimeS = infDbfEval.ReadDouble();
532533
Viewer.DbfEvalIniAutoPilotTimeS = infDbfEval.ReadDouble();
533534
Popups.HelpWindow.DbfEvalDistanceTravelled = infDbfEval.ReadSingle();
535+
Viewer.DbfEvalAutoPilot = Viewer.PlayerLocomotive.Train.TrainType == Simulation.Physics.Train.TRAINTYPE.AI_PLAYERHOSTING;
534536
}
535537

536538
/// <summary>

Source/RunActivity/Viewer3D/Viewer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ public bool IsBeforeNoon
255255

256256
public static double DbfEvalAutoPilotTimeS = 0;//Debrief eval
257257
public static double DbfEvalIniAutoPilotTimeS = 0;//Debrief eval
258-
public bool DbfEvalAutoPilot = false;//DebriefEval
258+
public static bool DbfEvalAutoPilot = false;//DebriefEval
259259

260260
/// <summary>
261261
/// Finds time of last entry to set ReplayEndsAt and provide the Replay started message.

0 commit comments

Comments
 (0)