1
0
Fork 0

"condition" needs to be clamped like "mixture", so that it is settable via

controls.adjEngControl()  (this is necessary to make the b1900d's condition
settable via m/M keys or the joystick's configure mixture bindings)
This commit is contained in:
mfranz 2005-04-21 14:17:59 +00:00
parent 6a4b7302b0
commit 73c1b5beb4

View file

@ -1556,10 +1556,12 @@ FGControls::set_condition( int engine, double val )
if ( engine == ALL_ENGINES ) {
for ( int i = 0; i < MAX_ENGINES; i++ ) {
condition[i] = val;
CLAMP( &condition[i], 0.0, 1.0 );
}
} else {
if ( (engine >= 0) && (engine < MAX_ENGINES) ) {
condition[engine] = val;
CLAMP( &condition[engine], 0.0, 1.0 );
}
}
}