1
0
Fork 0

Fix a property name spelling error.

This commit is contained in:
curt 2003-06-27 20:06:11 +00:00
parent a574116252
commit b6f87921cd
2 changed files with 5 additions and 5 deletions

View 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

View 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 ) {