1
0
Fork 0

Make distance penalty math for opposite oriented navaids more correct.

This commit is contained in:
curt 2004-07-20 00:59:17 +00:00
parent d5a5c9bb0e
commit abb0221c74

View file

@ -241,7 +241,8 @@ FGNavRecord *FGNavList::findNavFromList( const Point3D &aircraft,
// (squared) which is further than matching stations would // (squared) which is further than matching stations would
// ever be placed from each other. // ever be placed from each other.
if ( fabs(az1) > 90.0 ) { if ( fabs(az1) > 90.0 ) {
d2 += 5000*5000; double dist = sqrt(d2);
d2 = (dist + 5000) * (dist + 5000);
} }
} }