Turn the electrical system into a non-hardcoded system like all the other
systems.
This commit is contained in:
parent
d0c8edd02d
commit
5fb87df1fb
1 changed files with 4 additions and 3 deletions
|
@ -24,8 +24,6 @@
|
||||||
|
|
||||||
FGSystemMgr::FGSystemMgr ()
|
FGSystemMgr::FGSystemMgr ()
|
||||||
{
|
{
|
||||||
set_subsystem( "electrical", new FGElectricalSystem );
|
|
||||||
|
|
||||||
config_props = new SGPropertyNode;
|
config_props = new SGPropertyNode;
|
||||||
|
|
||||||
SGPropertyNode *path_n = fgGetNode("/sim/systems/path");
|
SGPropertyNode *path_n = fgGetNode("/sim/systems/path");
|
||||||
|
@ -78,7 +76,10 @@ bool FGSystemMgr::build ()
|
||||||
string name = node->getName();
|
string name = node->getName();
|
||||||
std::ostringstream temp;
|
std::ostringstream temp;
|
||||||
temp << i;
|
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(),
|
set_subsystem( "system" + temp.str(),
|
||||||
new PitotSystem( node ) );
|
new PitotSystem( node ) );
|
||||||
} else if ( name == "static" ) {
|
} else if ( name == "static" ) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue