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 {
|
} else {
|
||||||
me.flightplans[n].deleteWP(index);
|
if (me.flightplans[n].getWP(index).id == "DISCONTINUITY" and index > 0 and me.flightplans[n].getWP(index - 1).id == "PPOS") {
|
||||||
fmgc.windController.deleteWind(n, index);
|
return 1;
|
||||||
|
} else {
|
||||||
|
me.flightplans[n].deleteWP(index);
|
||||||
|
fmgc.windController.deleteWind(n, index);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
me.flightPlanChanged(n);
|
me.flightPlanChanged(n);
|
||||||
|
|
Loading…
Reference in a new issue