]> git.mxchange.org Git - flightgear.git/blobdiff - src/Network/props.cxx
Add an "additive-switch" type.
[flightgear.git] / src / Network / props.cxx
index 47f53aa75941d4afcdae448b80ba66a912240af1..3a0a1986e283c5722c604cd3c256ff29ab54bc16 100644 (file)
@@ -4,7 +4,7 @@
 // Written by Curtis Olson, started September 2000.
 // Modified by Bernie Bright, May 2002.
 //
-// Copyright (C) 2000  Curtis L. Olson - curt@flightgear.org
+// Copyright (C) 2000  Curtis L. Olson - http://www.flightgear.org/~curt
 //
 // This program is free software; you can redistribute it and/or
 // modify it under the terms of the GNU General Public License as
@@ -330,6 +330,14 @@ PropsChannel::foundTerminator()
                             = args.getNode("subsystem", i-2, true);
                         node->setStringValue( tokens[i].c_str() );
                     }
+                } else if ( tokens[1] == "set-sea-level-air-temp-degc" ) {
+                    for ( unsigned int i = 2; i < tokens.size(); ++i ) {
+                        cout << "props: set-sl command = " << tokens[i]
+                             << endl;
+                        SGPropertyNode *node
+                            = args.getNode("temp-degc", i-2, true);
+                        node->setStringValue( tokens[i].c_str() );
+                    }
                 } else if ( tokens[1] == "set-outside-air-temp-degc" ) {
                     for ( unsigned int i = 2; i < tokens.size(); ++i ) {
                         cout << "props: set-oat command = " << tokens[i]
@@ -476,6 +484,7 @@ FGProps::open()
 bool
 FGProps::close()
 {
+    SG_LOG( SG_IO, SG_INFO, "closing FGProps" );   
     return true;
 }