A3XX: Fix MCDU INITB bug

This commit is contained in:
Joshua Davidson 2017-07-20 17:49:06 -04:00
parent 1cfcdc4d65
commit 18547d26e4
2 changed files with 2 additions and 2 deletions

View file

@ -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);

View file

@ -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);