]> git.mxchange.org Git - flightgear.git/blobdiff - src/Autopilot/predictor.cxx
#591: night-time rendering issues, avoid negative color values
[flightgear.git] / src / Autopilot / predictor.cxx
index fe16d14dbeda80a48e3de164608757e99fbd5f4c..d5c854a728662449133d07a5e3ebd39cb703f42e 100644 (file)
 
 #include "predictor.hxx"
 
-#ifdef SG_BULK
-#undef SG_BULK
-#endif
-#define SG_BULK SG_ALERT
-#ifdef SG_INFO
-#undef SG_INFO
-#endif
-#define SG_INFO SG_ALERT
-
 using namespace FGXMLAutopilot;
 
+using std::endl;
+using std::cout;
+
 Predictor::Predictor () :
     AnalogComponent(),
     _average(0.0)
 {
 }
 
-bool Predictor::configure(const string& nodeName, SGPropertyNode* configNode)
+bool Predictor::configure(const string& nodeName, SGPropertyNode_ptr configNode)
 {
   SG_LOG( SG_AUTOPILOT, SG_BULK, "Predictor::configure(" << nodeName << ")" << endl );
+
+  if( AnalogComponent::configure( nodeName, configNode ) )
+    return true;
+
+  if( nodeName == "config" ) {
+    Component::configure( configNode );
+    return true;
+  }
+  
   if (nodeName == "seconds") {
     _seconds.push_back( new InputValue( configNode, 0 ) );
     return true;