Fix for an AIFlightPlan initialization problem in the traffic manager.
This commit is contained in:
parent
6d17cb8002
commit
6f7a9a5b1b
2 changed files with 3 additions and 3 deletions
|
@ -159,7 +159,7 @@ FGAIFlightPlan::FGAIFlightPlan(const std::string& p,
|
|||
}
|
||||
}
|
||||
catch (const sg_exception &e) {
|
||||
SG_LOG(SG_GENERAL, SG_ALERT,
|
||||
SG_LOG(SG_GENERAL, SG_WARN,
|
||||
"Error reading AI flight plan: ");
|
||||
cerr << "Errno = " << errno << endl;
|
||||
if (errno == ENOENT)
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue