]> git.mxchange.org Git - flightgear.git/commitdiff
Use the aircraft position helper.
authorJames Turner <zakalawe@mac.com>
Tue, 22 Jan 2013 17:15:05 +0000 (18:15 +0100)
committerJames Turner <zakalawe@mac.com>
Tue, 22 Jan 2013 17:15:05 +0000 (18:15 +0100)
src/GUI/MapWidget.cxx

index 004207e7108120f7644781b8011baf2e08462ea4..a161e822abe0069c57c384f72e7845d68ff6dfe2 100644 (file)
@@ -537,8 +537,7 @@ void MapWidget::zoomOut()
 
 void MapWidget::draw(int dx, int dy)
 {
-  _aircraft = SGGeod::fromDeg(fgGetDouble("/position/longitude-deg"),
-    fgGetDouble("/position/latitude-deg"));
+  _aircraft = globals->get_aircraft_position();
     
   bool mag = _root->getBoolValue("magnetic-headings");
   if (mag != _magneticHeadings) {