mode( 0 ),
dump( false ),
outflow_valve( 0.0 ),
+ landing_lights( false ),
+ turn_off_lights( false ),
taxi_light( false ),
logo_lights( false ),
nav_lights( false ),
release_ALL( false ),
vertical_adjust( 0.0 ),
fore_aft_adjust( 0.0 ),
+ cmd_selector_valve( 0 ),
off_start_run( 0 ),
APU_fire_switch( false ),
autothrottle_arm( false ),
// Destructor
FGControls::~FGControls() {
+ if (globals)
+ globals->set_controls( NULL );
}
FGControls::update (double dt)
{
SG_UNUSED(dt);
+
+ // nothing here, don't call again
+ suspend();
}
\f
////////////////////////////////////////////////////////////////////////
void FGAirportDynamicsXMLLoader::startParking(const XMLAttributes &atts)
{
string type;
- int index;
+ int index = 0;
string gateName, gateNumber;
string lat, lon;
double heading = 0.0;
void FGAirportDynamicsXMLLoader::startNode(const XMLAttributes &atts)
{
- int index;
+ int index = 0;
string lat, lon;
- bool onRunway;
- int holdPointType;
+ bool onRunway = false;
+ int holdPointType = 0;
for (int i = 0; i < atts.size() ; i++)
{
void FGAirportDynamicsXMLLoader::startArc(const XMLAttributes &atts)
{
- int begin, end;
+ int begin = 0, end = 0;
bool isPushBackRoute = false;
for (int i = 0; i < atts.size() ; i++)
double FGTaxiNode::getElevationFt(double refelev)
{
- double elevF = elevation();
#if 0
+ double elevF = elevation();
double elevationEnd = 0;
if ((elevF == 0) || (elevF == refelev)) {
SGGeod center2 = mPosition;
#include <osgViewer/Viewer>
#include <simgear/constants.h>
+#include <simgear/sg_inlines.h>
#include <simgear/debug/logstream.hxx>
#include <simgear/scene/tgdb/userdata.hxx>
#include <simgear/scene/material/matlib.hxx>
}
-void FGScenery::update(double dt) {
+void FGScenery::update(double dt)
+{
+ SG_UNUSED(dt);
+ // nothing here, don't call again
+ suspend();
}