From ebded9d9818fe555a718ffa58c80a96834b86504 Mon Sep 17 00:00:00 2001 From: James Turner Date: Wed, 28 Nov 2012 13:41:58 +0000 Subject: [PATCH] Bug 926 Disable elevation mixup for naiads, since it is introducing inconsistencies between the navdata and the scenery. (Actually it's exposing inconsistencies between the airport and navaid data, but that can't be fixed right now) --- src/Navaids/navdb.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Navaids/navdb.cxx b/src/Navaids/navdb.cxx index b94f1a3f8..abc7975d5 100644 --- a/src/Navaids/navdb.cxx +++ b/src/Navaids/navdb.cxx @@ -158,13 +158,16 @@ static PositionedID readNavFromStream(std::istream& aStream, if ((type >= FGPositioned::OM) && (type <= FGPositioned::IM)) { AirportRunwayPair arp(cache->findAirportRunway(name)); +#if 0 + // code is disabled since it's causing some problems, see + // http://code.google.com/p/flightgear-bugs/issues/detail?id=926 if (arp.second && (elev_ft < 0.01)) { // snap to runway elevation FGPositioned* runway = cache->loadById(arp.second); assert(runway); pos.setElevationFt(runway->geod().getElevationFt()); } - +#endif return cache->insertNavaid(type, string(), name, pos, 0, 0, 0, arp.first, arp.second); } -- 2.39.5