From 2d4ea99e6814701f597071100787235abd9e5952 Mon Sep 17 00:00:00 2001 From: legoboyvdlp R Date: Sat, 13 Jun 2020 15:48:12 +0100 Subject: [PATCH] Bugfix for from waypoint, also bugfix for the aproach vias --- Nasal/MCDU/ARRIVAL.nas | 2 +- Nasal/MCDU/F-PLN.nas | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Nasal/MCDU/ARRIVAL.nas b/Nasal/MCDU/ARRIVAL.nas index e20952e4..1aee5abe 100644 --- a/Nasal/MCDU/ARRIVAL.nas +++ b/Nasal/MCDU/ARRIVAL.nas @@ -660,7 +660,7 @@ var arrivalPage = { me.L2 = [nil, nil, "wht"]; me.arrowsMatrix[0][1] = 0; me.arrowsColour[0][1] = "wht"; - } else { + } elsif (me.activePage == 1) { me.L2 = [" VIAS", " APPR", "wht"]; me.arrowsMatrix[0][1] = 1; me.arrowsColour[0][1] = "wht"; diff --git a/Nasal/MCDU/F-PLN.nas b/Nasal/MCDU/F-PLN.nas index 1bb45b2f..468c6caf 100644 --- a/Nasal/MCDU/F-PLN.nas +++ b/Nasal/MCDU/F-PLN.nas @@ -106,7 +106,7 @@ var fplnItem = { if (me.index == 0 and left(me.wp.wp_name, 4) == getprop("/FMGC/internal/dep-arpt") and fmgc.flightPlanController.flightplans[me.plan].departure != nil) { return [" " ~ sprintf("%-5.0f", math.round(fmgc.flightPlanController.flightplans[me.plan].departure.elevation * M2FT)), "mag"]; } elsif (me.index == (fmgc.flightPlanController.currentToWptIndex.getValue() - 1) and fmgc.flightPlanController.fromWptAlt != nil) { - return [" " ~ fmgc.flightPlanController.fromWptAlt, "mag"]; + return [" " ~ fmgc.flightPlanController.fromWptAlt, "mag"]; } elsif (me.wp.alt_cstr != nil and me.wp.alt_cstr != 0) { if (me.wp.alt_cstr > fmgc.FMGCInternal.transAlt) { return [" " ~ sprintf("%-5s", "FL" ~ math.round(num(me.wp.alt_cstr) / 100)), "mag"];