Fix an inverted flag in Radar calculation
https://sourceforge.net/p/flightgear/codetickets/2083/ Thanks to Jean Pellotier for spotting.
This commit is contained in:
parent
56495485e2
commit
31f8f86e12
1 changed files with 1 additions and 1 deletions
|
@ -731,7 +731,7 @@ double FGAIBase::UpdateRadar(FGAIManager* manager)
|
|||
double dFt = d * SG_METER_TO_FEET;
|
||||
in_range = (d < radar_range_m);
|
||||
|
||||
if (!force_on && in_range) {
|
||||
if (!force_on && !in_range) {
|
||||
return dFt * dFt;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue