]> git.mxchange.org Git - flightgear.git/blobdiff - src/Main/globals.hxx
NavDisplay: fix update lag when switching range or centre.
[flightgear.git] / src / Main / globals.hxx
index 54b777a71842c4769a18cbff448b15791d8814a4..fd81b0b50e59eca3dcd876df89124e2c7a5cfcef 100644 (file)
@@ -91,7 +91,6 @@ private:
     FGRenderer *renderer;
     SGSubsystemMgr *subsystem_mgr;
     SGEventMgr *event_mgr;
-    SGSoundMgr *soundmgr;
 
     // Number of milliseconds elapsed since the start of the program.
     double sim_time_sec;
@@ -165,6 +164,9 @@ private:
 
     /// roots of Aircraft trees
     string_list fg_aircraft_dirs;
+
+    bool haveUserSettings;
+
 public:
 
     FGGlobals();
@@ -267,6 +269,8 @@ public:
 
     const SGGeod & get_aircraft_position() const;
 
+    SGVec3d get_aircraft_positon_cart() const;
+    
     inline FGModelMgr *get_model_mgr () { return model_mgr; }
 
     inline void set_model_mgr (FGModelMgr * mgr)
@@ -323,6 +327,15 @@ public:
      */
     void restoreInitialState ();
 
+    /**
+     * Load user settings from autosave.xml
+     */
+    void loadUserSettings();
+
+    /**
+     * Save user settings in autosave.xml
+     */
+    void saveUserSettings();
 };