1
0
Fork 0

Turn the electrical system into a non-hardcoded system like all the other

systems.
This commit is contained in:
curt 2005-06-14 17:54:19 +00:00
parent d0c8edd02d
commit 5fb87df1fb

View file

@ -24,8 +24,6 @@
FGSystemMgr::FGSystemMgr ()
{
set_subsystem( "electrical", new FGElectricalSystem );
config_props = new SGPropertyNode;
SGPropertyNode *path_n = fgGetNode("/sim/systems/path");
@ -78,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" ) {