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
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;
}
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 ) {