1
0
Fork 0

Fix Map initial position

Since 'center on aircraft' is now persistent, we need to expliictly init
this value when showing the map. Thanks to Michael Danilov and Colin
Geniet for the fix.

SF-Id: https://sourceforge.net/p/flightgear/codetickets/2637/
This commit is contained in:
James Turner 2021-08-20 11:26:01 +01:00
parent 732548bcb1
commit 049b3dcba6

View file

@ -471,6 +471,8 @@ MapWidget::MapWidget(int x, int y, int maxX, int maxY) :
_height = maxY - y;
_hasPanned = false;
_projection = PROJECTION_AZIMUTHAL_EQUIDISTANT;
_projectionCenter = globals->get_aircraft_position();
_magneticHeadings = false;
MapData::setFont(legendFont);