DeleteWP: don't allow deleting discontinuity that is just after a PPOS
This commit is contained in:
parent
9675111701
commit
b1683b770f
1 changed files with 6 additions and 2 deletions
|
@ -392,10 +392,14 @@ var flightPlanController = {
|
|||
me.addDiscontinuity(index, n);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (me.flightplans[n].getWP(index).id == "DISCONTINUITY" and index > 0 and me.flightplans[n].getWP(index - 1).id == "PPOS") {
|
||||
return 1;
|
||||
} else {
|
||||
me.flightplans[n].deleteWP(index);
|
||||
fmgc.windController.deleteWind(n, index);
|
||||
}
|
||||
}
|
||||
|
||||
me.flightPlanChanged(n);
|
||||
canvas_nd.A3XXRouteDriver.triggerSignal("fp-removed");
|
||||
|
|
Loading…
Reference in a new issue