1
0
Fork 0
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)
This commit is contained in:
James Turner 2012-11-28 13:41:58 +00:00
parent ef84524eba
commit ebded9d981

View file

@ -158,13 +158,16 @@ static PositionedID readNavFromStream(std::istream& aStream,
if ((type >= FGPositioned::OM) && (type <= FGPositioned::IM)) { if ((type >= FGPositioned::OM) && (type <= FGPositioned::IM)) {
AirportRunwayPair arp(cache->findAirportRunway(name)); 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)) { if (arp.second && (elev_ft < 0.01)) {
// snap to runway elevation // snap to runway elevation
FGPositioned* runway = cache->loadById(arp.second); FGPositioned* runway = cache->loadById(arp.second);
assert(runway); assert(runway);
pos.setElevationFt(runway->geod().getElevationFt()); pos.setElevationFt(runway->geod().getElevationFt());
} }
#endif
return cache->insertNavaid(type, string(), name, pos, 0, 0, 0, return cache->insertNavaid(type, string(), name, pos, 0, 0, 0,
arp.first, arp.second); arp.first, arp.second);
} }