X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FAIModel%2FAIFlightPlan.cxx;h=fd639f787f54782b18cc06780f49b417836457b1;hb=ed30b0c9a3818d5b8a306827184ac3525a1d8bdf;hp=c937716a40d30e52519bdd3f8d1f693cc55b1130;hpb=209c2c950391fcbc2c74c403b6b38211f6367f7f;p=flightgear.git diff --git a/src/AIModel/AIFlightPlan.cxx b/src/AIModel/AIFlightPlan.cxx index c937716a4..fd639f787 100644 --- a/src/AIModel/AIFlightPlan.cxx +++ b/src/AIModel/AIFlightPlan.cxx @@ -71,7 +71,6 @@ bool FGAIWaypoint::contains(string target) { FGAIFlightPlan::FGAIFlightPlan() { - rwy = 0; sid = 0; repeat = false; distance_to_go = 0; @@ -224,10 +223,12 @@ FGAIFlightPlan::FGAIFlightPlan(FGAIAircraft *ac, time_t timeDiff = now-start; leg = 1; - if ((timeDiff > 60) && (timeDiff < 1200)) + if ((timeDiff > 60) && (timeDiff < 1500)) leg = 2; - else if ((timeDiff >= 1200) && (timeDiff < 1500)) - leg = 3; + //else if ((timeDiff >= 1200) && (timeDiff < 1500)) { + //leg = 3; + //ac->setTakeOffStatus(2); + //} else if ((timeDiff >= 1500) && (timeDiff < 2000)) leg = 4; else if (timeDiff >= 2000)