]> git.mxchange.org Git - flightgear.git/commitdiff
Bugfix: ensure navradio nav-loc and has-gs properties clear to false when no valid...
authorjmt <jmt>
Thu, 28 Jan 2010 09:42:57 +0000 (09:42 +0000)
committerTim Moore <timoore33@gmail.com>
Sun, 31 Jan 2010 14:11:25 +0000 (15:11 +0100)
src/Instrumentation/navradio.cxx

index 7a8215f3eb9dc53fae787a46dd29b1941421189a..3e403d9cadbea9895a19b98a1bb3bcd233eb1de3 100644 (file)
@@ -368,6 +368,8 @@ void FGNavRadio::clearOutputs()
   gs_deflection_deg_node->setDoubleValue(0.0);
   gs_deflection_norm_node->setDoubleValue(0.0);
   gs_inrange_node->setBoolValue( false );
+  loc_node->setBoolValue( false );
+  has_gs_node->setBoolValue(false);
   
   to_flag_node->setBoolValue( false );
   from_flag_node->setBoolValue( false );
@@ -892,7 +894,9 @@ void FGNavRadio::search()
     _gs = NULL;
     _dme = NULL;
     nav_id_node->setStringValue("");
-
+    loc_node->setBoolValue(false);
+    has_gs_node->setBoolValue(false);
+    
     _sgr->remove( nav_fx_name );
     _sgr->remove( dme_fx_name );
   }