"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:
parent
6a4b7302b0
commit
73c1b5beb4
1 changed files with 2 additions and 0 deletions
|
@ -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 );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue