1
0
Fork 0

Use the aircraft position helper.

This commit is contained in:
James Turner 2013-01-22 18:15:05 +01:00
parent 1755029470
commit 980105385d

View 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) {