]> git.mxchange.org Git - flightgear.git/commitdiff
drop pointless warning. If the sound can't be removed, then proably because
authormfranz <mfranz>
Fri, 20 Oct 2006 12:12:12 +0000 (12:12 +0000)
committermfranz <mfranz>
Fri, 20 Oct 2006 12:12:12 +0000 (12:12 +0000)
it was never added, which is perfectly normal when the aircraft started
out of range. (Analog to the DME sound, which doesn't have that warning
either.)

src/Instrumentation/navradio.cxx

index e8732a063320f3689fb50ef096c547730b9131e6..4bec5789ba67cd069e0d6f45071b6ad1a726f1bd 100644 (file)
@@ -931,11 +931,8 @@ void FGNavRadio::search()
        target_radial = 0;
        trans_ident = "";
        last_nav_id = "";
-       if ( ! globals->get_soundmgr()->remove( nav_fx_name ) ) {
-            SG_LOG(SG_COCKPIT, SG_WARN, "Failed to remove nav-vor-ident sound");
-        }
+       globals->get_soundmgr()->remove( nav_fx_name );
        globals->get_soundmgr()->remove( dme_fx_name );
-       // cout << "not picking up vor1. :-(" << endl;
     }
 
     is_valid_node->setBoolValue( is_valid );