From: daveluff Date: Thu, 27 Mar 2003 15:46:23 +0000 (+0000) Subject: Initialise user lon, lat and elev X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d936531600b9acae3700112232aa525423670315;p=flightgear.git Initialise user lon, lat and elev --- 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());