1
0
Fork 0

Fix for an AIFlightPlan initialization problem in the traffic manager.

This commit is contained in:
durk 2006-03-29 18:36:21 +00:00
parent 6d17cb8002
commit 6f7a9a5b1b
2 changed files with 3 additions and 3 deletions

View file

@ -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)

View 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);