]> git.mxchange.org Git - flightgear.git/commitdiff
Initialize the SGInterpolator subsystem. Also remove some PSL code, since the includ...
authorandy <andy>
Fri, 5 Dec 2003 01:52:34 +0000 (01:52 +0000)
committerandy <andy>
Fri, 5 Dec 2003 01:52:34 +0000 (01:52 +0000)
src/Main/fg_init.cxx

index 873e82aac22f3a4e5424726fdf02c34c323abce9..52d9199349fbaedb9ab9dcbe2c2419a1ea8d621b 100644 (file)
@@ -58,6 +58,7 @@
 #include <simgear/math/polar3d.hxx>
 #include <simgear/math/sg_geodesy.hxx>
 #include <simgear/misc/sg_path.hxx>
+#include <simgear/misc/interpolator.hxx>
 #include <simgear/scene/material/matlib.hxx>
 #ifdef FG_USE_CLOUDS_3D
 #  include <simgear/scene/sky/clouds3d/SkySceneLoader.hpp>
 #include <Replay/replay.hxx>
 #include <Scenery/scenery.hxx>
 #include <Scenery/tilemgr.hxx>
-#if defined(HAVE_PLIB_PSL)
-#include <Scripting/scriptmgr.hxx>
-#endif
 #include <Scripting/NasalSys.hxx>
 #include <Sound/fg_fx.hxx>
 #include <Systems/system_mgr.hxx>
@@ -1452,6 +1450,11 @@ bool fgInitSubsystems() {
      globals->get_event_mgr()->init();
      globals->get_event_mgr()->setFreezeProperty(fgGetNode("/sim/freeze/clock"));
 
+    ////////////////////////////////////////////////////////////////////
+    // Initialize the property interpolator subsystem
+    ////////////////////////////////////////////////////////////////////
+    globals->add_subsystem("interpolator", new SGInterpolator());
+
     ////////////////////////////////////////////////////////////////////
     // Initialize the material property subsystem.
     ////////////////////////////////////////////////////////////////////
@@ -1513,16 +1516,6 @@ bool fgInitSubsystems() {
     
     globals->add_subsystem("logger", new FGLogger);
 
-
-#if defined(HAVE_PLIB_PSL)
-    ////////////////////////////////////////////////////////////////////
-    // Create and register the script manager.
-    ////////////////////////////////////////////////////////////////////
-
-    globals->add_subsystem("scripting", new FGScriptMgr);
-#endif // HAVE_PLIB_PSL
-
-
     ////////////////////////////////////////////////////////////////////
     // Create and register the XML GUI.
     ////////////////////////////////////////////////////////////////////