]> git.mxchange.org Git - flightgear.git/commitdiff
Wish #304: MapWidget's center-on-aircraft button should be sticky
authorThorstenB <brehmt@gmail.com>
Sat, 16 Apr 2011 08:53:09 +0000 (10:53 +0200)
committerThorstenB <brehmt@gmail.com>
Sat, 16 Apr 2011 08:53:09 +0000 (10:53 +0200)
Thanks to Victhor Foster for the idea.

src/GUI/MapWidget.cxx

index b482ada90ec0f75eafa457441a704928c2e7360c..cd648fefb3ad1f91917b8a60ea319ca7320ff4be 100644 (file)
@@ -527,7 +527,6 @@ void MapWidget::draw(int dx, int dy)
 
   if (_root->getBoolValue("centre-on-aircraft")) {
     _projectionCenter = _aircraft;
-    _root->setBoolValue("centre-on-aircraft", false);
   }
 
   double julianDate = globals->get_time_params()->getJD();