]> git.mxchange.org Git - flightgear.git/blobdiff - src/Navaids/waypoint.cxx
bind the sky disable cutoff distance to a property
[flightgear.git] / src / Navaids / waypoint.cxx
index 5992774b151538a1517250bc686c9c580fe56f25..12cee774463d6d0b29dc30731c1ac3b19cebc95d 100644 (file)
@@ -39,6 +39,9 @@ BasicWaypt::BasicWaypt(const SGGeod& aPos, const string& aIdent, Route* aOwner)
   _pos(aPos),
   _ident(aIdent)
 {
+  if (aPos.getElevationFt() > -999.0) {
+    setAltitude(aPos.getElevationFt(), RESTRICT_AT);
+  }
 }
 
 BasicWaypt::BasicWaypt(const SGWayPoint& aWP, Route* aOwner) :