From 50adab32c15ec54e4f557cf85f567bae4fda3e4e Mon Sep 17 00:00:00 2001 From: torsten Date: Fri, 18 Dec 2009 11:43:14 +0000 Subject: [PATCH] Ingore unhandled top level elements instead of not loading the autopilot. This (re-)enables usage of at top level and --- src/Autopilot/xmlauto.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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; } }