1
0
Fork 0

Merge branch 'jmt/navradio' into next

This commit is contained in:
Tim Moore 2010-02-17 07:29:44 +01:00
commit 4a14f8c107

View file

@ -917,7 +917,10 @@ void FGNavRadio::search()
double FGNavRadio::localizerWidth(FGNavRecord* aLOC)
{
FGRunway* rwy = aLOC->runway();
assert(rwy);
if (!rwy) {
return 6.0; // no runway associated, return default value
}
SGVec3d thresholdCart(SGVec3d::fromGeod(rwy->threshold()));
double axisLength = dist(aLOC->cart(), thresholdCart);