alt_lock = false;
roll = 0;
headingChangeRate = 0.0;
+ headingError = 0;
holdPos = false;
_performance = 0; //TODO initialize to JET_TRANSPORT from PerformanceDB
-
+ dt = 0;
}
}
//TODO let the fp handle this (loading of next leg)
- fp->IncrementWaypoint((bool) trafficRef);
- if (!(fp->getNextWaypoint()) && trafficRef)
+ fp->IncrementWaypoint( trafficRef != 0 );
+ if (!(fp->getNextWaypoint()) && trafficRef != 0)
if (!loadNextLeg()) {
setDie(true);
return;
}
double alt;
- if (globals->get_scenery()->get_elevation_m(SGGeod::fromGeodM(pos, 20000), alt, 0))
+ if (getGroundElevationM(SGGeod::fromGeodM(pos, 20000), alt, 0))
tgt_altitude_ft = alt * SG_METER_TO_FEET;
}
}