]> git.mxchange.org Git - flightgear.git/commitdiff
Fix updating ADF ident if getting in range after being out of range.
authorThomas Geymayer <tomgey@gmail.com>
Fri, 3 Oct 2014 10:40:07 +0000 (12:40 +0200)
committerThomas Geymayer <tomgey@gmail.com>
Fri, 3 Oct 2014 10:40:07 +0000 (12:40 +0200)
src/Instrumentation/adf.cxx

index 8053545e522d3ce6a96dac38f29cb2b535e0e372..62302c92bd97b2d4a5416c4ee7c09b6fed91eb51 100644 (file)
@@ -180,6 +180,7 @@ ADF::update (double delta_time_sec)
         geo_inverse_wgs_84(acPos, _transmitter_pos,
                            &bearing, &az2, &s);
         _in_range_node->setBoolValue(true);
+        _ident_node->setStringValue(_last_ident);
 
         bearing -= heading;
         if (bearing < 0)