]> git.mxchange.org Git - flightgear.git/commitdiff
Fix a property name spelling error.
authorcurt <curt>
Fri, 27 Jun 2003 20:06:11 +0000 (20:06 +0000)
committercurt <curt>
Fri, 27 Jun 2003 20:06:11 +0000 (20:06 +0000)
src/Network/atc610x.cxx
src/Network/native_ctrls.cxx

index 70cf20cbcc3692b8d81c0f4eb57ebf38092adfff..baebcff887e074c0ce32f46ac4891b7c86e6510d 100644 (file)
@@ -1839,8 +1839,8 @@ bool FGATC610x::do_switches() {
     fuel2 = fuel1;
     fuel1 = fuel;
     if ( fuel1 == fuel2 && fuel2 == fuel3 ) {
-        fgSetBool( "/controls/fuel/tank[0]/fuel-selector", (fuel & 0x01) > 0 );
-        fgSetBool( "/controls/fuel/tank[1]/fuel-selector", (fuel & 0x02) > 0 );
+        fgSetBool( "/controls/fuel/tank[0]/fuel_selector", (fuel & 0x01) > 0 );
+        fgSetBool( "/controls/fuel/tank[1]/fuel_selector", (fuel & 0x02) > 0 );
     }
 
     // circuit breakers
index 9ecc0d109712666fac261d9b608cedd3e9730c50..e1b8be694562f1cadb56f9254f7fb8a6d43ca79d 100644 (file)
@@ -141,9 +141,9 @@ void FGProps2NetCtrls( FGNetCtrls *net, bool net_byte_order ) {
     net->num_tanks = FGNetCtrls::FG_MAX_TANKS;
     for ( i = 0; i < FGNetCtrls::FG_MAX_TANKS; ++i ) {
         node = fgGetNode("/controls/fuel/tank", i);
-        if ( node->getChild("fuel-selector") != 0 ) {
+        if ( node->getChild("fuel_selector") != 0 ) {
             net->fuel_selector[i]
-                = node->getChild("fuel-selector")->getBoolValue();
+                = node->getChild("fuel_selector")->getBoolValue();
         } else {
             net->fuel_selector[i] = false;
         }
@@ -310,7 +310,7 @@ void FGNetCtrls2Props( FGNetCtrls *net, bool net_byte_order ) {
 
     for ( i = 0; i < FGNetCtrls::FG_MAX_TANKS; ++i ) {
         node = fgGetNode( "/controls/fuel/tank", i );
-        node->getChild( "fuel-selector" )
+        node->getChild( "fuel_selector" )
             ->setBoolValue( net->fuel_selector[i] );
     }
     for ( i = 0; i < FGNetCtrls::FG_MAX_WHEELS; ++i ) {