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
|
@ -393,8 +393,12 @@ var flightPlanController = {
|
|||
}
|
||||
}
|
||||
} else {
|
||||
me.flightplans[n].deleteWP(index);
|
||||
fmgc.windController.deleteWind(n, index);
|
||||
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);
|
||||
|
|
Loading…
Reference in a new issue