From a1451f592fb76139a02f818a4c1629682028b5e5 Mon Sep 17 00:00:00 2001 From: James Turner Date: Mon, 22 Jul 2013 18:11:07 +0100 Subject: [PATCH] Ignore SGGeod altitude when creating BasicWaypt. This logic was only ever causing bad values, all callers which care about an altitude restriction were setting one explicitly. Thanks to Curt for spotting it. --- src/Navaids/waypoint.cxx | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/Navaids/waypoint.cxx b/src/Navaids/waypoint.cxx index aaeedd53c..5d2d76101 100644 --- a/src/Navaids/waypoint.cxx +++ b/src/Navaids/waypoint.cxx @@ -38,9 +38,6 @@ BasicWaypt::BasicWaypt(const SGGeod& aPos, const string& aIdent, RouteBase* aOwn _pos(aPos), _ident(aIdent) { - if (aPos.getElevationFt() > -999.0) { - setAltitude(aPos.getElevationFt(), RESTRICT_AT); - } } BasicWaypt::BasicWaypt(RouteBase* aOwner) : -- 2.39.5