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)
|
void MapWidget::draw(int dx, int dy)
|
||||||
{
|
{
|
||||||
_aircraft = SGGeod::fromDeg(fgGetDouble("/position/longitude-deg"),
|
_aircraft = globals->get_aircraft_position();
|
||||||
fgGetDouble("/position/latitude-deg"));
|
|
||||||
|
|
||||||
bool mag = _root->getBoolValue("magnetic-headings");
|
bool mag = _root->getBoolValue("magnetic-headings");
|
||||||
if (mag != _magneticHeadings) {
|
if (mag != _magneticHeadings) {
|
||||||
|
|
Loading…
Reference in a new issue