Make distance penalty math for opposite oriented navaids more correct.
This commit is contained in:
parent
d5a5c9bb0e
commit
abb0221c74
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue