All pastes #254527 Raw Edit

Something

public text v1 · immutable
#254527 ·published 2006-11-21 23:23 UTC
rendered paste body
Index: src/Instrumentation/adf.cxx
===================================================================
RCS file: /var/cvs/FlightGear-0.9/source/src/Instrumentation/adf.cxx,v
retrieving revision 1.17
diff -u -r1.17 adf.cxx
--- src/Instrumentation/adf.cxx 26 Oct 2006 14:47:15 -0000      1.17
+++ src/Instrumentation/adf.cxx 21 Nov 2006 23:21:06 -0000
@@ -111,7 +111,7 @@
 ADF::update (double delta_time_sec)
 {
                                 // If it's off, don't waste any time.
-    if (!_electrical_node->getBoolValue() ||
+    if (_electrical_node->getDoubleValue() < 1.0 ||
         !_serviceable_node->getBoolValue()) {
         set_bearing(delta_time_sec, 90);
         _ident_node->setStringValue("");