]> git.mxchange.org Git - flightgear.git/commitdiff
Ingore unhandled top level elements instead of not loading the autopilot. This (re...
authortorsten <torsten>
Fri, 18 Dec 2009 11:43:14 +0000 (11:43 +0000)
committerTim Moore <timoore@redhat.com>
Sun, 20 Dec 2009 07:37:00 +0000 (08:37 +0100)
src/Autopilot/xmlauto.cxx

index 8d07a66bd8f17ed3f041e94944f56367e349918c..28bfdaffd20ec32587b2646422884806ca80ab4f 100644 (file)
@@ -961,10 +961,10 @@ bool FGXMLAutopilot::build( SGPropertyNode_ptr config_props ) {
             components.push_back( new FGPredictor( node ) );
         } else if ( name == "filter" ) {
             components.push_back( new FGDigitalFilter( node ) );
             components.push_back( new FGPredictor( node ) );
         } else if ( name == "filter" ) {
             components.push_back( new FGDigitalFilter( node ) );
-        } else {
-            SG_LOG( SG_ALL, SG_ALERT, "Unknown top level section: " 
-                    << name );
-            return false;
+//        } else {
+//            SG_LOG( SG_ALL, SG_ALERT, "Unknown top level section: " 
+//                    << name );
+//            return false;
         }
     }
 
         }
     }