]> git.mxchange.org Git - flightgear.git/blobdiff - src/Instrumentation/encoder.cxx
do also silence the marker sounds on --disable-sound
[flightgear.git] / src / Instrumentation / encoder.cxx
index 0c1517aecba145b0f32cbf83970d726c475eb1e7..c8677a6d502e9a9cda135612f12118c30f6afa2c 100644 (file)
@@ -62,10 +62,10 @@ int round (double value, int nearest=1)
 
 Encoder::Encoder(SGPropertyNode *node)
     :
-    altitudeTable(new SGInterpTable),
     name("encoder"),
     num(0),
-    staticPort("/systems/static")
+    staticPort("/systems/static"),
+    altitudeTable(new SGInterpTable)
 {
     int i;
     for ( i = 0; altitude_data[i][0] != -1; i++ )
@@ -112,8 +112,6 @@ void Encoder::init()
     // Outputs
     pressureAltitudeNode = node->getChild("pressure-alt-ft", 0, true);
     modeCAltitudeNode = node->getChild("mode-c-alt-ft", 0, true);
-    // Init
-    serviceableNode->setBoolValue(true);
 }