#include <string.h> // strdup
#include <plib/ul.h>
-#include <plib/ssg.h>
#include <simgear/constants.h>
#include <simgear/debug/logstream.hxx>
#include <simgear/misc/sg_path.hxx>
-#include <simgear/misc/commands.hxx>
-#include <simgear/misc/exception.hxx>
+#include <simgear/structure/commands.hxx>
+#include <simgear/structure/exception.hxx>
#include <Main/globals.hxx>
#include <Main/fg_props.hxx>
#include <Cockpit/hud.hxx>
#include <Cockpit/panel_io.hxx>
#include <Model/acmodel.hxx>
-#include <Autopilot/newauto.hxx>
-#include <Main/fgfs.hxx>
#include "aircraft.hxx"
globals->get_commands()->addCommand("load-aircraft", fgLoadAircraft);
}
-static bool
+bool
fgLoadAircraft (const SGPropertyNode * arg)
{
static const SGPropertyNode *master_freeze
//
globals->get_viewmgr()->reinit();
globals->get_controls()->reset_all();
- globals->get_autopilot()->reset();
globals->get_aircraft_model()->reinit();
globals->get_subsystem("fx")->reinit();
+ globals->get_subsystem("xml-autopilot")->reinit();
fgReInitSubsystems();