Advertisement
Guest User

Untitled

a guest
Jun 28th, 2013
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. diff --git a/src/GUI/MapWidget.cxx b/src/GUI/MapWidget.cxx
  2. index b063bc7..dc40614 100644
  3. --- a/src/GUI/MapWidget.cxx
  4. +++ b/src/GUI/MapWidget.cxx
  5. @@ -937,6 +937,11 @@ private:
  6.  
  7. void MapWidget::drawAirports()
  8. {
  9. +
  10. + if (_cachedZoom >= SHOW_DETAIL_ZOOM+2) {
  11. + return;
  12. + }
  13. +
  14. MapAirportFilter af(_root);
  15. bool partial = false;
  16. FGPositionedList apts = FGPositioned::findWithinRangePartial(_projectionCenter, _drawRangeNm, &af, partial);
  17. @@ -978,6 +983,11 @@ private:
  18.  
  19. void MapWidget::drawNavaids()
  20. {
  21. +
  22. + if (_cachedZoom >= SHOW_DETAIL_ZOOM+2) {
  23. + return;
  24. + }
  25. +
  26. bool fixes = _root->getBoolValue("draw-fixes");
  27. NavaidFilter f(fixes, _root->getBoolValue("draw-navaids"));
  28.  
  29. @@ -1001,8 +1011,12 @@ void MapWidget::drawNavaids()
  30. void MapWidget::drawPOIs()
  31. {
  32. FGPositioned::TypeFilter f(FGPositioned::COUNTRY);
  33. - f.addType(FGPositioned::CITY);
  34. - f.addType(FGPositioned::TOWN);
  35. + if (_cachedZoom < SHOW_DETAIL2_ZOOM) {
  36. + f.addType(FGPositioned::CITY);
  37. + }
  38. + if (_cachedZoom < SHOW_DETAIL_ZOOM) {
  39. + f.addType(FGPositioned::TOWN);
  40. + }
  41. FGPositionedList poi = FGPositioned::findWithinRange(_projectionCenter, _drawRangeNm, &f);
  42.  
  43. glLineWidth(1.0);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement