]> git.mxchange.org Git - flightgear.git/commitdiff
Map shows all airports when zoomed in.
authorJames Turner <zakalawe@mac.com>
Sun, 6 Oct 2013 16:28:58 +0000 (17:28 +0100)
committerJames Turner <zakalawe@mac.com>
Tue, 15 Oct 2013 21:28:10 +0000 (22:28 +0100)
Bug 1135, or part of it.

(Ignore the short-runway culling when zoomed in)

src/GUI/MapWidget.cxx

index c35c1e6fe26cfad8b983eec7bf6276ec7413a349..137b83bf6a0f93315759583ee424482af74f4e22 100644 (file)
@@ -930,6 +930,11 @@ public:
 
     return true;
   }
+    
+    void showAll()
+    {
+        _hardRunwaysOnly = false;
+    }
 
 private:
   bool _heliports;
@@ -940,6 +945,11 @@ private:
 void MapWidget::drawAirports()
 {
   MapAirportFilter af(_root);
+    if (_cachedZoom <= SHOW_DETAIL2_ZOOM) {
+        // show all airports when zoomed in sufficently
+        af.showAll();
+    }
+    
   bool partial = false;
   FGPositionedList apts = FGPositioned::findWithinRangePartial(_projectionCenter, _drawRangeNm, &af, partial);
   for (unsigned int i=0; i<apts.size(); ++i) {