]> git.mxchange.org Git - flightgear.git/blobdiff - src/Main/positioninit.cxx
Reset: clear effects cache
[flightgear.git] / src / Main / positioninit.cxx
index 816e997831fcaee8cf0fa37668f94c77a36450c2..ee45af4989f1bcdbe1137458e9c415a8a99782d5 100644 (file)
@@ -566,6 +566,11 @@ bool initPosition()
   }
   
   fgSetBool("/sim/position-finalized", false);
+
+// Initialize the longitude, latitude and altitude to the initial position
+    fgSetDouble("/position/altitude-ft", fgGetDouble("/sim/presets/altitude-ft"));
+    fgSetDouble("/position/longitude-deg", fgGetDouble("/sim/presets/longitude-deg"));
+    fgSetDouble("/position/latitude-deg", fgGetDouble("/sim/presets/latitude-deg"));
     
   return true;
 }