A3XX: Fix MCDU INITB bug
This commit is contained in:
parent
1cfcdc4d65
commit
18547d26e4
2 changed files with 2 additions and 2 deletions
|
@ -15,7 +15,7 @@ var initInputB = func(key) {
|
|||
} else {
|
||||
var tfs = size(scratchpad);
|
||||
var maxblock = getprop("/options/maxblock");
|
||||
if (tfs == 2 or tfs == 4 or tfs == 5) {
|
||||
if (tfs >= 1 and tfs <= 5) {
|
||||
if (scratchpad >= 1.0 and scratchpad <= maxblock) {
|
||||
setprop("/FMGC/internal/block", scratchpad);
|
||||
setprop("/FMGC/internal/block-set", 1);
|
||||
|
|
|
@ -15,7 +15,7 @@ var initInputB = func(key) {
|
|||
} else {
|
||||
var tfs = size(scratchpad);
|
||||
var maxblock = getprop("/options/maxblock");
|
||||
if (tfs == 2 or tfs == 4 or tfs == 5) {
|
||||
if (tfs >= 1 and tfs <= 5) {
|
||||
if (scratchpad >= 1.0 and scratchpad <= maxblock) {
|
||||
setprop("/FMGC/internal/block", scratchpad);
|
||||
setprop("/FMGC/internal/block-set", 1);
|
||||
|
|
Reference in a new issue