From: david Date: Thu, 6 Feb 2003 16:18:17 +0000 (+0000) Subject: Make sure that we have a VOR or VORTAC, and not just a DME or TACAN. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=41b04ba02b28e647534baca956ab86c87fd941a2;p=flightgear.git Make sure that we have a VOR or VORTAC, and not just a DME or TACAN. --- diff --git a/src/Cockpit/navcom.cxx b/src/Cockpit/navcom.cxx index b148b4897..a5f5b9357 100644 --- a/src/Cockpit/navcom.cxx +++ b/src/Cockpit/navcom.cxx @@ -517,7 +517,7 @@ void FGNavCom::search() } } else if ( (nav = current_navlist->findByFreq(nav_freq, lon, lat, elev)) != NULL ) { nav_id = nav->get_ident(); - nav_valid = true; + nav_valid = (nav->get_type() == 'V'); if ( last_nav_id != nav_id || !last_nav_vor ) { last_nav_id = nav_id; last_nav_vor = true;