]> git.mxchange.org Git - flightgear.git/commitdiff
Fix a bug that is screwing me!
authorcurt <curt>
Thu, 13 Aug 2009 17:01:36 +0000 (17:01 +0000)
committerTim Moore <timoore@redhat.com>
Sun, 23 Aug 2009 19:43:08 +0000 (21:43 +0200)
src/Network/ATC-Outputs.cxx

index b5078a5810cd796ff581e6d53dde5a3e9f6ea24b..c9099cb9ce3a1c95a222166deb1105fc12a65a8e 100644 (file)
@@ -464,22 +464,18 @@ bool FGATCOutput::do_analog_out() {
                 }
                 prop = child->getChild( "value-lo" );
                 if ( prop != NULL ) {
-                    prop = fgGetNode( prop->getStringValue(), true );
                    x0 = prop->getDoubleValue();
                 }
                 prop = child->getChild( "meter-lo" );
                 if ( prop != NULL ) {
-                    prop = fgGetNode( prop->getStringValue(), true );
                    y0 = prop->getDoubleValue();
                 }
                 prop = child->getChild( "value-hi" );
                 if ( prop != NULL ) {
-                    prop = fgGetNode( prop->getStringValue(), true );
                    x1 = prop->getDoubleValue();
                 }
                 prop = child->getChild( "meter-hi" );
                 if ( prop != NULL ) {
-                    prop = fgGetNode( prop->getStringValue(), true );
                    y1 = prop->getDoubleValue();
                 }
                // crunch linear interpolation formula