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:
parent
732548bcb1
commit
049b3dcba6
1 changed files with 2 additions and 0 deletions
|
@ -471,6 +471,8 @@ MapWidget::MapWidget(int x, int y, int maxX, int maxY) :
|
||||||
_height = maxY - y;
|
_height = maxY - y;
|
||||||
_hasPanned = false;
|
_hasPanned = false;
|
||||||
_projection = PROJECTION_AZIMUTHAL_EQUIDISTANT;
|
_projection = PROJECTION_AZIMUTHAL_EQUIDISTANT;
|
||||||
|
|
||||||
|
_projectionCenter = globals->get_aircraft_position();
|
||||||
_magneticHeadings = false;
|
_magneticHeadings = false;
|
||||||
|
|
||||||
MapData::setFont(legendFont);
|
MapData::setFont(legendFont);
|
||||||
|
|
Loading…
Reference in a new issue