Fix DCT routing simbrief parser
This commit is contained in:
parent
e48e060ef6
commit
1b9c2667bf
1 changed files with 45 additions and 43 deletions
|
@ -82,6 +82,7 @@ var SimbriefParser = {
|
|||
});
|
||||
|
||||
me.store1 = me.OFP.getChild("navlog").getChildren();
|
||||
if (size(me.store1) != 0) {
|
||||
var firstIsSID = 0;
|
||||
var SIDID = "";
|
||||
if (me.store1[0].getChild("is_sid_star").getValue() == 1) {
|
||||
|
@ -131,6 +132,7 @@ var SimbriefParser = {
|
|||
}
|
||||
fmgc.flightPlanController.flightplans[3].sid = fmgc.flightPlanController.flightplans[3].departure.getSid(SIDID);
|
||||
fmgc.flightPlanController.flightplans[3].star = fmgc.flightPlanController.flightplans[3].destination.getStar(STARID);
|
||||
}
|
||||
fmgc.flightPlanController.destroyTemporaryFlightPlan(3, 1);
|
||||
|
||||
fmgc.windController.updatePlans();
|
||||
|
|
Loading…
Reference in a new issue