From: torsten Date: Fri, 18 Dec 2009 11:43:14 +0000 (+0000) Subject: Ingore unhandled top level elements instead of not loading the autopilot. This (re... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=50adab32c15ec54e4f557cf85f567bae4fda3e4e;p=flightgear.git Ingore unhandled top level elements instead of not loading the autopilot. This (re-)enables usage of at top level and --- diff --git a/src/Autopilot/xmlauto.cxx b/src/Autopilot/xmlauto.cxx index 8d07a66bd..28bfdaffd 100644 --- a/src/Autopilot/xmlauto.cxx +++ b/src/Autopilot/xmlauto.cxx @@ -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 ) ); - } 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; } }