1
0
Fork 0

Make newly created (external) boolean properties default to true if not

otherwise specified.
This commit is contained in:
curt 2009-01-20 17:46:16 +00:00 committed by Tim Moore
parent c76aca9a3d
commit 5008e912c7

View file

@ -544,7 +544,7 @@ void FGExternalPipe::update_property( double dt ) {
// node doesn't exist so create with requested type // node doesn't exist so create with requested type
node = fgGetNode( tokens[1].c_str(), true ); node = fgGetNode( tokens[1].c_str(), true );
if ( tokens[2] == "bool" ) { if ( tokens[2] == "bool" ) {
node->setBoolValue(true); node->setBoolValue(false);
} else if ( tokens[2] == "int" ) { } else if ( tokens[2] == "int" ) {
node->setIntValue(0); node->setIntValue(0);
} else if ( tokens[2] == "double" ) { } else if ( tokens[2] == "double" ) {