]> git.mxchange.org Git - flightgear.git/blobdiff - src/Instrumentation/slip_skid_ball.cxx
Pull Sound-manager out of FGGlobals
[flightgear.git] / src / Instrumentation / slip_skid_ball.cxx
index 2ee3bb12c0cfba29e787ef73dc3621ff67fae998..4bb1f916bdc7ed58b2a7595bc0dff7534a29768b 100644 (file)
@@ -3,6 +3,10 @@
 //
 // This file is in the Public Domain and comes with no warranty.
 
+#ifdef HAVE_CONFIG_H
+#  include "config.h"
+#endif
+
 #include "slip_skid_ball.hxx"
 #include <Main/fg_props.hxx>
 #include <Main/util.hxx>
@@ -32,6 +36,14 @@ SlipSkidBall::init ()
     _z_accel_node = fgGetNode("/accelerations/pilot/z-accel-fps_sec", true);
     _out_node = node->getChild("indicated-slip-skid", 0, true);
     _override_node = node->getChild("override", 0, true);
+
+    reinit();
+}
+
+void
+SlipSkidBall::reinit ()
+{
+    _out_node->setDoubleValue(0.0);
 }
 
 void