]> git.mxchange.org Git - flightgear.git/commitdiff
Allow 'property' as well as 'prop' to be used in XMLauto <enable> blocks.
authorJames Turner <zakalawe@mac.com>
Thu, 27 May 2010 14:20:37 +0000 (15:20 +0100)
committerJames Turner <zakalawe@mac.com>
Thu, 27 May 2010 14:20:37 +0000 (15:20 +0100)
src/Autopilot/xmlauto.cxx

index e1bedb5688cdb5c8152011fedb6c8137d2987f6a..9c91bff1507f0fa2311efead5e39d23475aaf4f8 100644 (file)
@@ -261,6 +261,10 @@ void FGXMLAutoComponent::parseNode(SGPropertyNode* aNode)
       if( (prop = child->getChild("condition")) != NULL ) {
         _condition = sgReadCondition(fgGetNode("/"), prop);
       } else {
+         if ( (prop = child->getChild( "property" )) != NULL ) {
+             enable_prop = fgGetNode( prop->getStringValue(), true );
+         }
+         
          if ( (prop = child->getChild( "prop" )) != NULL ) {
              enable_prop = fgGetNode( prop->getStringValue(), true );
          }