1
0
Fork 0

Fix flightplan initialization issue.

This commit is contained in:
Durk Talsma 2011-07-25 21:36:09 +02:00
parent 87bd2bfd6e
commit dbceffeae8
2 changed files with 4 additions and 1 deletions

View file

@ -452,8 +452,10 @@ bool FGAIFlightPlan::createTakeOff(FGAIAircraft * ac, bool firstFlight,
double heading = ac->getTrafficRef()->getCourse();
apt->getDynamics()->getActiveRunway(rwyClass, 1, activeRunway,
heading);
rwy = apt->getRunwayByIdent(activeRunway);
}
rwy = apt->getRunwayByIdent(activeRunway);
double airportElev = apt->getElevation();
// Acceleration point, 105 meters into the runway,

View file

@ -118,6 +118,7 @@ void FGATCManager::init() {
fgSetDouble("/instrumentation/comm[0]/frequencies/selected-mhz", ((double) stationFreq / 100.0));
leg = 4;
string fltType = "ga";
fp->setRunway(runway);
fp->createTakeOff(&ai_ac, false, apt, 0, fltType);
} else {
controller = apt->getDynamics()->getStartupController();