]> git.mxchange.org Git - flightgear.git/blobdiff - src/ATCDCL/AIMgr.hxx
Fix two bugs in the new autopilot code
[flightgear.git] / src / ATCDCL / AIMgr.hxx
index 6bc81a10b9afd33da00cf5366e2415469d24d2d9..8d87c5c981482bebb1c247d9a8e61649b0c849ff 100644 (file)
@@ -31,7 +31,7 @@
 #include "ATCmgr.hxx"
 #include "AIEntity.hxx"
 
-SG_USING_STD(list);
+using std::list;
 
 
 class FGAIMgr : public SGSubsystem
@@ -81,15 +81,12 @@ private:
        typedef ai_callsigns_map_type::iterator ai_callsigns_map_iterator;
        ai_callsigns_map_type ai_callsigns_used;
 
-    // Position of the Users Aircraft
-    double lon;
-    double lat;
-    double elev;
-    // Pointers to current users position
-    SGPropertyNode_ptr lon_node;
-    SGPropertyNode_ptr lat_node;
-    SGPropertyNode_ptr elev_node;
+  SGGeod _userAircraftPos;
 
+  // Pointers to current users position
+  SGPropertyNode_ptr lon_node;
+  SGPropertyNode_ptr lat_node;
+  SGPropertyNode_ptr elev_node;
 public:
 
     FGAIMgr();