]> git.mxchange.org Git - flightgear.git/commitdiff
Bug 926
authorJames Turner <zakalawe@mac.com>
Wed, 28 Nov 2012 13:41:58 +0000 (13:41 +0000)
committerJames Turner <zakalawe@mac.com>
Wed, 28 Nov 2012 13:41:58 +0000 (13:41 +0000)
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

index b94f1a3f8475f1d34fb0c109464544fcd5ecc6f5..abc7975d535e4bfb675a7bcbcd34a68698e8d65c 100644 (file)
@@ -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);
   }