From: James Turner Date: Tue, 22 Jan 2013 17:15:05 +0000 (+0100) Subject: Use the aircraft position helper. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=980105385dcaa79194a264463629809cdf9e5c02;p=flightgear.git Use the aircraft position helper. --- diff --git a/src/GUI/MapWidget.cxx b/src/GUI/MapWidget.cxx index 004207e71..a161e822a 100644 --- a/src/GUI/MapWidget.cxx +++ b/src/GUI/MapWidget.cxx @@ -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) {