]> git.mxchange.org Git - flightgear.git/blobdiff - src/Navaids/navlist.cxx
- fix two bugs
[flightgear.git] / src / Navaids / navlist.cxx
index 4e1bea4c817a71b12ff3e699fd38fcafbb32df3b..650cd7a9f95fe8dbd717cdb0c7385e12f81f793b 100644 (file)
@@ -16,7 +16,7 @@
 //
 // You should have received a copy of the GNU General Public License
 // along with this program; if not, write to the Free Software
-// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 //
 // $Id$
 
@@ -300,7 +300,8 @@ FGNavRecord *FGNavList::findNavFromList( const Point3D &aircraft,
         // the closest station.)
        if ( d2 < min_dist &&
              (stations[i]->get_type() == 4 || stations[i]->get_type() == 5 ||
-              stations[i]->get_type() == 6 || stations[i]->get_type() == 12) )
+              stations[i]->get_type() == 6 || stations[i]->get_type() == 12 ||
+              stations[i]->get_type() == 13) )
         {
             double hdg_deg = 0.0;
             if ( stations[i]->get_type() == 4 || stations[i]->get_type() == 5 ){
@@ -308,7 +309,8 @@ FGNavRecord *FGNavList::findNavFromList( const Point3D &aircraft,
             } else if ( stations[i]->get_type() == 6 ) {
                 int tmp = (int)(stations[i]->get_multiuse() / 1000.0);
                 hdg_deg = stations[i]->get_multiuse() - (tmp * 1000);
-            } else if ( stations[i]->get_type() == 12 ) {
+            } else if ( stations[i]->get_type() == 12 ||
+                        stations[i]->get_type() == 13 ) {
                 // oops, Robin's data format doesn't give us the
                 // needed information to compute a heading for a DME
                 // transmitter.  FIXME Robin!