Use the aircraft position helper.
This commit is contained in:
parent
1755029470
commit
980105385d
1 changed files with 1 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue