diff --git a/A320-main.xml b/A320-main.xml index b9040e43..3b39e2dd 100644 --- a/A320-main.xml +++ b/A320-main.xml @@ -1917,7 +1917,7 @@ <file>Aircraft/A320-family/Nasal/MCDU/VERTREV.nas</file> <!-- dynamic page - init before MCDU --> <file>Aircraft/A320-family/Nasal/MCDU/DEPARTURE.nas</file> <!-- dynamic page - init before MCDU --> <file>Aircraft/A320-family/Nasal/MCDU/ARRIVAL.nas</file> <!-- dynamic page - init before MCDU --> - <file>Aircraft/A320-family/Nasal/MCDU/F-PLN-rework.nas</file> <!-- dynamic page - init before MCDU --> + <file>Aircraft/A320-family/Nasal/MCDU/F-PLN.nas</file> <!-- dynamic page - init before MCDU --> <file>Aircraft/A320-family/Nasal/MCDU/MCDU.nas</file> <file>Aircraft/A320-family/Nasal/MCDU/INITA.nas</file> <file>Aircraft/A320-family/Nasal/MCDU/INITB.nas</file> diff --git a/Nasal/FMGC/flightplan.nas b/Nasal/FMGC/flightplan.nas index 22a897f9..425b67f0 100644 --- a/Nasal/FMGC/flightplan.nas +++ b/Nasal/FMGC/flightplan.nas @@ -164,12 +164,9 @@ var flightPlanController = { me.deleteWP(0, plan); } else { var timesToDelete = me.flightplans[plan].indexOfWP(waypointGhost); # delete four times, so on last iteration it equals one and then goes to zero, leave it without subtracting one - print(timesToDelete); while (timesToDelete > 1) { - print(timesToDelete); me.deleteWP(1, plan, 1); timesToDelete -= 1; - print(timesToDelete); } me.insertTP(plan); # we want to delete the intermediate waypoints up to but not including the waypoint. Leave index 0, we delete it later. diff --git a/Nasal/MCDU/F-PLN-rework.nas b/Nasal/MCDU/F-PLN.nas similarity index 100% rename from Nasal/MCDU/F-PLN-rework.nas rename to Nasal/MCDU/F-PLN.nas