]> git.mxchange.org Git - flightgear.git/blobdiff - src/Traffic/Schedule.cxx
Don't restore initial screen geometry because there is nothing in fg_os* to resize...
[flightgear.git] / src / Traffic / Schedule.cxx
index 9ac106e4023e52d298c8d54709c0d5c40c4cc390..3a20c96685d988d3aa5d270a25e4ef14b2cb888f 100644 (file)
@@ -376,13 +376,13 @@ bool FGAISchedule::update(time_t now)
                  aircraft->setCompany(airline); //i->getAirline();
                  aircraft->setAcType(acType); //i->getAcType();
                  aircraft->setPath(modelPath.c_str());
-                 aircraft->setFlightPlan(flightPlanName);
+                 //aircraft->setFlightPlan(flightPlanName);
                  aircraft->setLatitude(lat);
                  aircraft->setLongitude(lon);
                  aircraft->setAltitude(i->getCruiseAlt()*100); // convert from FL to feet
                  aircraft->setSpeed(speed);
                  aircraft->setBank(0);
-                 aircraft->SetFlightPlan(new FGAIFlightPlan(modelPath, courseToDest, i->getDepartureTime(), dep, 
+                 aircraft->SetFlightPlan(new FGAIFlightPlan(flightPlanName, courseToDest, i->getDepartureTime(), dep, 
                                                             arr,true, radius, i->getCruiseAlt()*100, lat, lon, speed, flightType, acType, airline));
                  aimgr->attach(aircraft);