src/Autopilot/digitalcomponent.cxx: fixed misleading indentation.
This commit is contained in:
parent
b7d7edc49e
commit
ae1c4afea6
1 changed files with 9 additions and 9 deletions
|
@ -93,15 +93,15 @@ bool DigitalComponent::configure( SGPropertyNode& cfg_node,
|
|||
if( (n = cfg_node.getNode("inverted")) != NULL )
|
||||
o->setInverted( n->getBoolValue() );
|
||||
|
||||
if( (n = cfg_node.getNode("property")) != NULL ) {
|
||||
const auto trimmed = simgear::strutils::strip(n->getStringValue());
|
||||
o->setProperty( prop_root.getNode(trimmed, true) );
|
||||
}
|
||||
|
||||
if( cfg_node.nChildren() == 0 ) {
|
||||
const auto trimmed = simgear::strutils::strip(cfg_node.getStringValue());
|
||||
o->setProperty( prop_root.getNode(trimmed, true) );
|
||||
}
|
||||
if( (n = cfg_node.getNode("property")) != NULL ) {
|
||||
const auto trimmed = simgear::strutils::strip(n->getStringValue());
|
||||
o->setProperty( prop_root.getNode(trimmed, true) );
|
||||
}
|
||||
|
||||
if( cfg_node.nChildren() == 0 ) {
|
||||
const auto trimmed = simgear::strutils::strip(cfg_node.getStringValue());
|
||||
o->setProperty( prop_root.getNode(trimmed, true) );
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue