HOLD fix
This commit is contained in:
parent
9b4fdcf5b5
commit
d67ff09a79
2 changed files with 10 additions and 2 deletions
|
@ -29,8 +29,8 @@ var fplnItem = {
|
|||
if (wptName[0] == "VECTORS") {
|
||||
return ["MANUAL", me.getSubText(), me.colour];
|
||||
} else {
|
||||
if (me.wp.fly_type == "HOLD") {
|
||||
return ["HOLD " ~ me.wp.hold_is_left_handed ? "L" : "R", me.getSubText(), me.colour];
|
||||
if (me.wp.fly_type == "Hold") {
|
||||
return ["HOLD " ~ (me.wp.hold_is_left_handed ? "L" : "R"), me.getSubText(), me.colour];
|
||||
} else {
|
||||
if (size(wptName) == 2) {
|
||||
return[wptName[0] ~ wptName[1 ~ (me.wp.fly_type == "flyOver" ? "@" : "")], me.getSubText(), me.colour];
|
||||
|
|
|
@ -112,20 +112,28 @@ var holdPage = {
|
|||
if (index == 1) {
|
||||
if (size(me.scratchpad) <= 3 and num(me.scratchpad) != nil) {
|
||||
me.waypoint.hold_inbound_radial = me.scratchpad;
|
||||
mcdu_scratchpad.scratchpads[me.computer].empty();
|
||||
me._setupPageWithData();
|
||||
} else {
|
||||
mcdu_message(me.computer, "NOT ALLOWED");
|
||||
}
|
||||
} else if (index == 2) {
|
||||
if (me.scratchpad == "L") {
|
||||
me.waypoint.hold_is_left_handed = 1;
|
||||
mcdu_scratchpad.scratchpads[me.computer].empty();
|
||||
me._setupPageWithData();
|
||||
} elsif (me.scratchpad == "R") {
|
||||
me.waypoint.hold_is_left_handed = 0;
|
||||
mcdu_scratchpad.scratchpads[me.computer].empty();
|
||||
me._setupPageWithData();
|
||||
} else {
|
||||
mcdu_message(me.computer, "NOT ALLOWED");
|
||||
}
|
||||
} elsif (index == 3) {
|
||||
if (num(me.scratchpad) != nil) {
|
||||
me.waypoint.hold_time_or_distance = me.scratchpad;
|
||||
mcdu_scratchpad.scratchpads[me.computer].empty();
|
||||
me._setupPageWithData();
|
||||
} else {
|
||||
mcdu_message(me.computer, "NOT ALLOWED");
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue