From: James Turner Date: Mon, 22 Jul 2013 17:11:07 +0000 (+0100) Subject: Ignore SGGeod altitude when creating BasicWaypt. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a1451f592fb76139a02f818a4c1629682028b5e5;p=flightgear.git 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. --- 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) :