]> 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 725daa7999787df03dfa15d2b14e45b1767f674a..c8677a6d502e9a9cda135612f12118c30f6afa2c 100644 (file)
@@ -62,15 +62,15 @@ 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)
 {
-    for (int i = 0; altitude_data[i][0] != -1; i++)
+    int i;
+    for ( i = 0; altitude_data[i][0] != -1; i++ )
         altitudeTable->addEntry(altitude_data[i][0], altitude_data[i][1]);
 
-    int i;
     for ( i = 0; i < node->nChildren(); ++i ) {
         SGPropertyNode *child = node->getChild(i);
         string cname = child->getName();
@@ -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);
 }