From: ehofman Date: Tue, 30 Jun 2009 07:44:56 +0000 (+0000) Subject: although the official name is 'bool' also support 'boolean' for backward compatibility. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f5ab3756a120a7bbd86c48eb423ba8a0a4e7f07b;p=flightgear.git although the official name is 'bool' also support 'boolean' for backward compatibility. --- diff --git a/src/Network/generic.cxx b/src/Network/generic.cxx index 9abb6eb4c..6d1cdac77 100644 --- a/src/Network/generic.cxx +++ b/src/Network/generic.cxx @@ -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") {