From d936531600b9acae3700112232aa525423670315 Mon Sep 17 00:00:00 2001 From: daveluff Date: Thu, 27 Mar 2003 15:46:23 +0000 Subject: [PATCH] Initialise user lon, lat and elev --- src/ATC/AIMgr.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ATC/AIMgr.cxx b/src/ATC/AIMgr.cxx index f2547549b..7223eb3d9 100644 --- a/src/ATC/AIMgr.cxx +++ b/src/ATC/AIMgr.cxx @@ -19,12 +19,10 @@ // along with this program; if not, write to the Free Software // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. -#include #include
#include
#include
#include -#include #include @@ -54,6 +52,10 @@ void FGAIMgr::init() { lon_node = fgGetNode("/position/longitude-deg", true); lat_node = fgGetNode("/position/latitude-deg", true); elev_node = fgGetNode("/position/altitude-ft", true); + + lon = lon_node->getDoubleValue(); + lat = lat_node->getDoubleValue(); + elev = elev_node->getDoubleValue(); // go through the $FG_ROOT/ATC directory and find all *.taxi files SGPath path(globals->get_fg_root()); -- 2.39.5