]> git.mxchange.org Git - flightgear.git/commitdiff
although the official name is 'bool' also support 'boolean' for backward compatibility.
authorehofman <ehofman>
Tue, 30 Jun 2009 07:44:56 +0000 (07:44 +0000)
committerTim Moore <timoore@redhat.com>
Thu, 2 Jul 2009 06:59:16 +0000 (08:59 +0200)
src/Network/generic.cxx

index 9abb6eb4c13782c9a0152e9e17496d95abd0a5b8..6d1cdac77545fb27e3725185f34eb2ada93ecc09 100644 (file)
@@ -633,7 +633,10 @@ FGGeneric::read_config(SGPropertyNode *root, vector<_serial_prot> &msg)
         chunk.prop = fgGetNode(node.c_str(), true);
 
         string type = chunks[i]->getStringValue("type");
-        if (type == "bool") {
+
+        // Note: officially the type is called 'bool' but for backward
+        //       compatibility 'boolean' will also be supported.
+        if (type == "bool" || type == "boolean") {
             chunk.type = FG_BOOL;
             record_length += 1;
         } else if (type == "float") {