Disallow left select key for pseudo waypoints
This commit is contained in:
parent
40a8e85d0b
commit
bdd69e51a4
1 changed files with 9 additions and 5 deletions
|
@ -548,14 +548,18 @@ var fplnPage = { # this one is only created once, and then updated - remember th
|
|||
setprop("MCDU[" ~ me.computer ~ "]/page", "LATREV");
|
||||
}
|
||||
} else {
|
||||
if (size(me.outputList) >= index and !mcdu_scratchpad.scratchpads[me.computer].showTypeIMsg and !mcdu_scratchpad.scratchpads[me.computer].showTypeIIMsg) {
|
||||
if (me.outputList[index - 1 + me.scroll].wp != "PSEUDO" and size(me.outputList) >= index and !mcdu_scratchpad.scratchpads[me.computer].showTypeIMsg and !mcdu_scratchpad.scratchpads[me.computer].showTypeIIMsg) {
|
||||
if (size(mcdu_scratchpad.scratchpads[me.computer].scratchpad) > 0) {
|
||||
if (mcdu_scratchpad.scratchpads[me.computer].scratchpad == "CLR") {
|
||||
if (me.outputList[index - 1 + me.scroll].wp.wp_name == "(DECEL)") {
|
||||
mcdu_message(me.computer, "NOT ALLOWED");
|
||||
return;
|
||||
if (!me.temporaryFlagFpln) {
|
||||
var decelIndex = 9999;
|
||||
if (fmgc.flightPlanController.decelPoint != nil) {
|
||||
decelIndex = getprop("/instrumentation/nd/symbols/decel/index");
|
||||
}
|
||||
if ((index - 1 + me.scroll) > decelIndex) {
|
||||
index = index - 1;
|
||||
}
|
||||
}
|
||||
|
||||
var returny = fmgc.flightPlanController.scratchpad(mcdu_scratchpad.scratchpads[me.computer].scratchpad, (index - 1 + me.scroll), me.computer);
|
||||
if (returny == 3) {
|
||||
mcdu_message(me.computer, "DIR TO IN PROGRESS");
|
||||
|
|
Loading…
Add table
Reference in a new issue