although the official name is 'bool' also support 'boolean' for backward compatibility.
This commit is contained in:
parent
38d538cdb8
commit
f5ab3756a1
1 changed files with 4 additions and 1 deletions
|
@ -633,7 +633,10 @@ FGGeneric::read_config(SGPropertyNode *root, vector<_serial_prot> &msg)
|
||||||
chunk.prop = fgGetNode(node.c_str(), true);
|
chunk.prop = fgGetNode(node.c_str(), true);
|
||||||
|
|
||||||
string type = chunks[i]->getStringValue("type");
|
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;
|
chunk.type = FG_BOOL;
|
||||||
record_length += 1;
|
record_length += 1;
|
||||||
} else if (type == "float") {
|
} else if (type == "float") {
|
||||||
|
|
Loading…
Add table
Reference in a new issue