Use fgGetBool to assign a boolean variable
This commit is contained in:
parent
863b0c9432
commit
02cf3373d5
1 changed files with 1 additions and 1 deletions
|
@ -366,7 +366,7 @@ readTextChunk (const SGPropertyNode * node)
|
||||||
string propName = node->getStringValue("property");
|
string propName = node->getStringValue("property");
|
||||||
float scale = node->getFloatValue("scale", 1.0);
|
float scale = node->getFloatValue("scale", 1.0);
|
||||||
float offset = node->getFloatValue("offset", 0.0);
|
float offset = node->getFloatValue("offset", 0.0);
|
||||||
bool truncation = node->getFloatValue("truncate", false);
|
bool truncation = node->getBoolValue("truncate", false);
|
||||||
SGPropertyNode * target = fgGetNode(propName.c_str(), true);
|
SGPropertyNode * target = fgGetNode(propName.c_str(), true);
|
||||||
chunk = new FGTextLayer::Chunk(FGTextLayer::DOUBLE_VALUE, target,
|
chunk = new FGTextLayer::Chunk(FGTextLayer::DOUBLE_VALUE, target,
|
||||||
format, scale, offset, truncation);
|
format, scale, offset, truncation);
|
||||||
|
|
Loading…
Reference in a new issue