]> git.mxchange.org Git - flightgear.git/blobdiff - src/Main/fg_props.cxx
Added a new 'delimiter' property to allow an alternative delimiter to
[flightgear.git] / src / Main / fg_props.cxx
index b7966352e9aaeabc14efb2f411ddf3d795065898..0b0ca687bfd0be78969d2afbfd2da7306941e7d2 100644 (file)
@@ -454,6 +454,16 @@ setPilotPositionZOffset (float z)
 }
 
 
+/**
+ * Return the number of milliseconds elapsed since simulation started.
+ */
+static long
+getElapsedTime_ms ()
+{
+  return globals->get_elapsed_time_ms();
+}
+
+
 /**
  * Return the current Zulu time.
  */
@@ -808,6 +818,7 @@ fgInitProps ()
   fgTie("/sim/view/pilot/z-offset-m",
        getPilotPositionZOffset, setPilotPositionZOffset);
   fgSetArchivable("/sim/view/pilot/z-offset-m");
+  fgTie("/sim/time/elapsed-ms", getElapsedTime_ms);
   fgTie("/sim/time/gmt", getDateString, setDateString);
   fgSetArchivable("/sim/time/gmt");
   fgTie("/sim/time/gmt-string", getGMTString);
@@ -864,10 +875,10 @@ fgUpdateProps ()
  * Save the current state of the simulator to a stream.
  */
 bool
-fgSaveFlight (ostream &output)
+fgSaveFlight (ostream &output, bool write_all)
 {
   try {
-    writeProperties(output, globals->get_props());
+    writeProperties(output, globals->get_props(), write_all);
   } catch (const sg_exception &e) {
     guiErrorMessage("Error saving flight: ", e);
     return false;