Crz wind bug fix
This commit is contained in:
parent
6f69dee2ac
commit
e3266e5325
1 changed files with 18 additions and 14 deletions
|
@ -519,27 +519,31 @@ var windCRZPage = {
|
||||||
if (fmgc.flightPlanController.temporaryFlag[me.computer]) {
|
if (fmgc.flightPlanController.temporaryFlag[me.computer]) {
|
||||||
computer_temp = me.computer;
|
computer_temp = me.computer;
|
||||||
}
|
}
|
||||||
if (me.cur_location < size(fmgc.windController.nav_indicies[computer_temp]) - 1) {
|
if (size(fmgc.windController.nav_indicies[computer_temp]) > 1) {
|
||||||
me.cur_location = me.cur_location + 1;
|
if (me.cur_location < size(fmgc.windController.nav_indicies[computer_temp]) - 1) {
|
||||||
} else {
|
me.cur_location = me.cur_location + 1;
|
||||||
me.cur_location = 0;
|
} else {
|
||||||
|
me.cur_location = 0;
|
||||||
|
}
|
||||||
|
me.match_location = fmgc.windController.nav_indicies[computer_temp][me.cur_location];
|
||||||
|
me.waypoint = fmgc.flightPlanController.flightplans[computer_temp].getWP(me.match_location);
|
||||||
|
me.reload();
|
||||||
}
|
}
|
||||||
me.match_location = fmgc.windController.nav_indicies[computer_temp][me.cur_location];
|
|
||||||
me.waypoint = fmgc.flightPlanController.flightplans[computer_temp].getWP(me.match_location);
|
|
||||||
me.reload();
|
|
||||||
},
|
},
|
||||||
pushButtonDown: func() {
|
pushButtonDown: func() {
|
||||||
var computer_temp = 2;
|
var computer_temp = 2;
|
||||||
if (fmgc.flightPlanController.temporaryFlag[me.computer]) {
|
if (fmgc.flightPlanController.temporaryFlag[me.computer]) {
|
||||||
computer_temp = me.computer;
|
computer_temp = me.computer;
|
||||||
}
|
}
|
||||||
if (me.cur_location > 0) {
|
if (size(fmgc.windController.nav_indicies[computer_temp]) > 1) {
|
||||||
me.cur_location = me.cur_location - 1;
|
if (me.cur_location > 0) {
|
||||||
} else {
|
me.cur_location = me.cur_location - 1;
|
||||||
me.cur_location = size(fmgc.windController.nav_indicies[computer_temp]) - 1;
|
} else {
|
||||||
|
me.cur_location = size(fmgc.windController.nav_indicies[computer_temp]) - 1;
|
||||||
|
}
|
||||||
|
me.match_location = fmgc.windController.nav_indicies[computer_temp][me.cur_location];
|
||||||
|
me.waypoint = fmgc.flightPlanController.flightplans[computer_temp].getWP(me.match_location);
|
||||||
|
me.reload();
|
||||||
}
|
}
|
||||||
me.match_location = fmgc.windController.nav_indicies[computer_temp][me.cur_location];
|
|
||||||
me.waypoint = fmgc.flightPlanController.flightplans[computer_temp].getWP(me.match_location);
|
|
||||||
me.reload();
|
|
||||||
}
|
}
|
||||||
};
|
};
|
Loading…
Reference in a new issue