diff --git a/Nasal/FMGC/flightplan.nas b/Nasal/FMGC/flightplan.nas index 9e8cade1..69f34220 100644 --- a/Nasal/FMGC/flightplan.nas +++ b/Nasal/FMGC/flightplan.nas @@ -769,6 +769,12 @@ var flightPlanController = { return 3; } + if (index == me.currentToWptIndex.getValue()) { + return 1; + # TODO - implement the PPOS - DISCONT feature + # me.insertPPOS(thePlan, index - 1); + # me.addDiscontinuity(index - 1, thePlan, 1); + } if (!me.temporaryFlag[plan]) { if (text == "CLR" and me.flightplans[2].getWP(index).wp_name == "DISCONTINUITY") { @@ -784,6 +790,7 @@ var flightPlanController = { var thePlan = plan; } + # check waypoints database here var wpFromDB = WaypointDatabase.getWP(text); if (wpFromDB != nil) {