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)
This commit is contained in:
parent
ef84524eba
commit
ebded9d981
1 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue