Bugfix
This commit is contained in:
parent
6ca266766e
commit
fb0e4754e2
3 changed files with 19 additions and 12 deletions
|
@ -123,10 +123,16 @@ var flightPlanController = {
|
||||||
mcdu.isNoVia[2] = 0;
|
mcdu.isNoVia[2] = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mcdu.isNoTrans[n] == 1) {
|
if (mcdu.isNoTransDep[n] == 1) {
|
||||||
mcdu.isNoTrans[2] = 1;
|
mcdu.isNoTransDep[2] = 1;
|
||||||
} else {
|
} else {
|
||||||
mcdu.isNoTrans[2] = 0;
|
mcdu.isNoTransDep[2] = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (mcdu.isNoTransArr[n] == 1) {
|
||||||
|
mcdu.isNoTransArr[2] = 1;
|
||||||
|
} else {
|
||||||
|
mcdu.isNoTransArr[2] = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
me.flightPlanChanged(2);
|
me.flightPlanChanged(2);
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
var isNoStar = [0, 0, 0];
|
var isNoStar = [0, 0, 0];
|
||||||
var isNoTrans = [0, 0, 0];
|
var isNoTransArr = [0, 0, 0];
|
||||||
var isNoVia = [0, 0, 0];
|
var isNoVia = [0, 0, 0];
|
||||||
|
|
||||||
var arrivalPage = {
|
var arrivalPage = {
|
||||||
|
@ -65,7 +65,7 @@ var arrivalPage = {
|
||||||
me.selectedApproach = nil;
|
me.selectedApproach = nil;
|
||||||
me.selectedVIA = nil;
|
me.selectedVIA = nil;
|
||||||
isNoStar[me.computer] = 0;
|
isNoStar[me.computer] = 0;
|
||||||
isNoTrans[me.computer] = 0;
|
isNoTransArr[me.computer] = 0;
|
||||||
isNoVia[me.computer] = 0;
|
isNoVia[me.computer] = 0;
|
||||||
},
|
},
|
||||||
_setupFirstTime: func() {
|
_setupFirstTime: func() {
|
||||||
|
@ -89,7 +89,7 @@ var arrivalPage = {
|
||||||
me.selectedSTAR = "NO STAR";
|
me.selectedSTAR = "NO STAR";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isNoTrans[2]) {
|
if (isNoTransArr[2]) {
|
||||||
me.selectedTransition = "NO TRANS";
|
me.selectedTransition = "NO TRANS";
|
||||||
} elsif (fmgc.flightPlanController.flightplans[2].star != nil) {
|
} elsif (fmgc.flightPlanController.flightplans[2].star != nil) {
|
||||||
me.selectedTransition = fmgc.flightPlanController.flightplans[2].star_trans;
|
me.selectedTransition = fmgc.flightPlanController.flightplans[2].star_trans;
|
||||||
|
@ -124,7 +124,7 @@ var arrivalPage = {
|
||||||
me.selectedSTAR = "NO STAR";
|
me.selectedSTAR = "NO STAR";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isNoTrans[me.computer] or isNoTrans[2]) {
|
if (isNoTransArr[me.computer] or isNoTransArr[2]) {
|
||||||
me.selectedTransition = "NO TRANS";
|
me.selectedTransition = "NO TRANS";
|
||||||
} elsif (fmgc.flightPlanController.flightplans[me.computer].star != nil) {
|
} elsif (fmgc.flightPlanController.flightplans[me.computer].star != nil) {
|
||||||
me.selectedTransition = fmgc.flightPlanController.flightplans[me.computer].star_trans;
|
me.selectedTransition = fmgc.flightPlanController.flightplans[me.computer].star_trans;
|
||||||
|
@ -763,7 +763,7 @@ var arrivalPage = {
|
||||||
if (size(me.approaches) >= (index - 2) and index != 2) { # index = 3, size = 1
|
if (size(me.approaches) >= (index - 2) and index != 2) { # index = 3, size = 1
|
||||||
if (!dirToFlag) {
|
if (!dirToFlag) {
|
||||||
me.selectedVIA = nil;
|
me.selectedVIA = nil;
|
||||||
isNoTrans[me.computer] = 0;
|
isNoTransArr[me.computer] = 0;
|
||||||
isNoStar[me.computer] = 0;
|
isNoStar[me.computer] = 0;
|
||||||
me.makeTmpy();
|
me.makeTmpy();
|
||||||
if (!me.apprIsRwyFlag) {
|
if (!me.apprIsRwyFlag) {
|
||||||
|
@ -806,9 +806,9 @@ var arrivalPage = {
|
||||||
}
|
}
|
||||||
me.updateSTARs();
|
me.updateSTARs();
|
||||||
if (me.selectedSTAR != "NO STAR") {
|
if (me.selectedSTAR != "NO STAR") {
|
||||||
isNoTrans[me.computer] = 0;
|
isNoTransArr[me.computer] = 0;
|
||||||
} else {
|
} else {
|
||||||
isNoTrans[me.computer] = 1;
|
isNoTransArr[me.computer] = 1;
|
||||||
}
|
}
|
||||||
me.updatePage();
|
me.updatePage();
|
||||||
fmgc.flightPlanController.flightPlanChanged(me.computer);
|
fmgc.flightPlanController.flightPlanChanged(me.computer);
|
||||||
|
@ -849,10 +849,10 @@ var arrivalPage = {
|
||||||
me.selectedTransition = me.transitions[index - 3];
|
me.selectedTransition = me.transitions[index - 3];
|
||||||
me.makeTmpy();
|
me.makeTmpy();
|
||||||
if (me.selectedTransition != "NO TRANS") {
|
if (me.selectedTransition != "NO TRANS") {
|
||||||
isNoTrans[me.computer] = 0;
|
isNoTransArr[me.computer] = 0;
|
||||||
fmgc.flightPlanController.flightplans[me.computer].star_trans = me.selectedTransition;
|
fmgc.flightPlanController.flightplans[me.computer].star_trans = me.selectedTransition;
|
||||||
} else {
|
} else {
|
||||||
isNoTrans[me.computer] = 1;
|
isNoTransArr[me.computer] = 1;
|
||||||
fmgc.flightPlanController.flightplans[me.computer].star_trans = nil;
|
fmgc.flightPlanController.flightplans[me.computer].star_trans = nil;
|
||||||
}
|
}
|
||||||
me.updatePage();
|
me.updatePage();
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
var isNoSid = [0, 0];
|
var isNoSid = [0, 0];
|
||||||
|
var isNoTransDep = [0, 0, 0];
|
||||||
|
|
||||||
var departurePage = {
|
var departurePage = {
|
||||||
title: [nil, nil, nil],
|
title: [nil, nil, nil],
|
||||||
|
|
Loading…
Reference in a new issue