1
0
Fork 0

Merge branch 'jmt/navradio'

This commit is contained in:
Tim Moore 2010-04-25 23:04:51 +02:00
commit 2bd897df8e

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);