]> git.mxchange.org Git - flightgear.git/commitdiff
Make newly created (external) boolean properties default to true if not
authorcurt <curt>
Tue, 20 Jan 2009 17:46:16 +0000 (17:46 +0000)
committerTim Moore <timoore@redhat.com>
Wed, 21 Jan 2009 08:55:33 +0000 (09:55 +0100)
otherwise specified.

src/FDM/ExternalPipe/ExternalPipe.cxx

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