]> git.mxchange.org Git - flightgear.git/commitdiff
Ignore SGGeod altitude when creating BasicWaypt.
authorJames Turner <zakalawe@mac.com>
Mon, 22 Jul 2013 17:11:07 +0000 (18:11 +0100)
committerJames Turner <zakalawe@mac.com>
Mon, 22 Jul 2013 17:11:07 +0000 (18:11 +0100)
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

index aaeedd53c84dbcfc43f38fef9fdd5d96672d09c3..5d2d761016148bde57b02a15e0be19c59f8dd347 100644 (file)
@@ -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) :