]> git.mxchange.org Git - flightgear.git/blobdiff - src/Systems/system_mgr.cxx
Update 'magic' for more consistant cross platform padding.
[flightgear.git] / src / Systems / system_mgr.cxx
index 21bf3f5cf0bb7f51141a516af8f5af0fd726f139..cc1844d1a12589a045bcaf058cfbc026c141a519 100644 (file)
 #include "pitot.hxx"
 #include "static.hxx"
 #include "vacuum.hxx"
-#include "submodel.hxx"
 
 
 FGSystemMgr::FGSystemMgr ()
 {
-    set_subsystem( "electrical", new FGElectricalSystem );
-    set_subsystem( "submodel", new SubmodelSystem() );
-
     config_props = new SGPropertyNode;
 
     SGPropertyNode *path_n = fgGetNode("/sim/systems/path");
@@ -80,7 +76,10 @@ bool FGSystemMgr::build ()
         string name = node->getName();
         std::ostringstream temp;
         temp << i;
-        if ( name == "pitot" ) {
+        if ( name == "electrical" ) {
+            set_subsystem( "electrical" + temp.str(),
+                           new FGElectricalSystem( node ) );
+        } else if ( name == "pitot" ) {
             set_subsystem( "system" + temp.str(), 
                            new PitotSystem( node ) );
         } else if ( name == "static" ) {