From: david Date: Mon, 15 Apr 2002 15:28:11 +0000 (+0000) Subject: This module was filtering out all stations with localizer offset X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6c2039c5aad19cb335bccb69560409765104d0fd;p=flightgear.git This module was filtering out all stations with localizer offset >90deg, even though src/Cockpit/radiostack.cxx has code to deal with those; as a result, no backcourses were getting through. This fix allows the common case of backcourses to work again, but breaks the uncommon case of a runway using the same frequency for two separate localizers. That special case will have to be detected somehow. Still, this fixes more approaches than it breaks. --- diff --git a/src/Navaids/ilslist.cxx b/src/Navaids/ilslist.cxx index 6b7dcfc35..840195051 100644 --- a/src/Navaids/ilslist.cxx +++ b/src/Navaids/ilslist.cxx @@ -155,6 +155,9 @@ bool FGILSList::query( double lon, double lat, double elev, double freq, if ( d < (2* FG_ILS_DEFAULT_RANGE * SG_NM_TO_METER * 2 * FG_ILS_DEFAULT_RANGE * SG_NM_TO_METER) ) { + *ils = *current; + return true; +#if 0 // Get our bearing from this station. double reciprocal_bearing, dummy; double a_lat_deg = lat * SGD_RADIANS_TO_DEGREES; @@ -175,6 +178,7 @@ bool FGILSList::query( double lon, double lat, double elev, double freq, *ils = *current; return true; } +#endif } }