From: curt Date: Fri, 27 Jun 2003 20:06:11 +0000 (+0000) Subject: Fix a property name spelling error. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b6f87921cd936cbce8c03b0d446f36bf79200d06;p=flightgear.git Fix a property name spelling error. --- diff --git a/src/Network/atc610x.cxx b/src/Network/atc610x.cxx index 70cf20cbc..baebcff88 100644 --- a/src/Network/atc610x.cxx +++ b/src/Network/atc610x.cxx @@ -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 diff --git a/src/Network/native_ctrls.cxx b/src/Network/native_ctrls.cxx index 9ecc0d109..e1b8be694 100644 --- a/src/Network/native_ctrls.cxx +++ b/src/Network/native_ctrls.cxx @@ -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 ) {