From f5ab3756a120a7bbd86c48eb423ba8a0a4e7f07b Mon Sep 17 00:00:00 2001 From: ehofman Date: Tue, 30 Jun 2009 07:44:56 +0000 Subject: [PATCH] although the official name is 'bool' also support 'boolean' for backward compatibility. --- src/Network/generic.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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") { -- 2.39.5