A3XX: Lock INITB when eng running, issue #80

This commit is contained in:
Joshua Davidson 2017-11-07 14:53:52 -05:00
parent 103c0d0ce5
commit 90045bfa8a
3 changed files with 7 additions and 3 deletions

View file

@ -335,7 +335,9 @@ var arrowbutton = func(btn) {
setprop("/MCDU[0]/page", "DATA");
}
if (getprop("/MCDU[0]/page") == "INITA") {
setprop("/MCDU[0]/page", "INITB");
if (getprop("/engines/engine[0]/state") != 3 and getprop("/engines/engine[1]/state") != 3) {
setprop("/MCDU[0]/page", "INITB");
}
} else if (getprop("/MCDU[0]/page") == "INITB") {
setprop("/MCDU[0]/page", "INITA");
}

View file

@ -333,7 +333,9 @@ var arrowbutton = func(btn) {
setprop("/MCDU[1]/page", "DATA");
}
if (getprop("/MCDU[1]/page") == "INITA") {
setprop("/MCDU[1]/page", "INITB");
if (getprop("/engines/engine[0]/state") != 3 and getprop("/engines/engine[1]/state") != 3) {
setprop("/MCDU[1]/page", "INITB");
}
} else if (getprop("/MCDU[1]/page") == "INITB") {
setprop("/MCDU[1]/page", "INITA");
}

View file

@ -1 +1 @@
3052
3053