1
0
Fork 0

Bugfix: ensure navradio nav-loc and has-gs properties clear to false when no valid station is tuned / radio is u/s.

This commit is contained in:
jmt 2010-01-28 09:42:57 +00:00 committed by Tim Moore
parent 38e76a175e
commit 49e477f6a7

View 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 );
}