diff --git a/src/Aircraft/flightrecorder.cxx b/src/Aircraft/flightrecorder.cxx index 81a8842b9..afcfcaecb 100644 --- a/src/Aircraft/flightrecorder.cxx +++ b/src/Aircraft/flightrecorder.cxx @@ -338,7 +338,7 @@ FGFlightRecorder::capture(double SimTime, FGReplayData* ReplayData) ReplayData->sim_time = SimTime; - if (in_replay) { + if (in_replay && !s_recent_raw_data.empty()) { // Record the fixed position of live user aircraft at the point at // which we started replay. // diff --git a/src/Aircraft/replay.cxx b/src/Aircraft/replay.cxx index 7521a8d10..1072d3ca0 100644 --- a/src/Aircraft/replay.cxx +++ b/src/Aircraft/replay.cxx @@ -161,7 +161,6 @@ FGReplay::FGReplay() : fdm->addChangeListener(this, true /*initial*/); } -static bool saveSetup(const SGPropertyNode* ConfigData, SGPath& p, SGPropertyNode_ptr& myMetaData, double Duration); static int PropertiesWrite(SGPropertyNode* root, std::ostream& out) { @@ -200,6 +199,45 @@ static void popupTip(const char* message, int delay) globals->get_commands()->execute("show-message", args); } +enum FGTapeType +{ + FGTapeType_NORMAL, + FGTapeType_CONTINUOUS, + FGTapeType_RECOVERY, +}; + +// Returns a path using different formats depending on : +// +// FGTapeType_NORMAL: /--