Skip to content

Commit

Permalink
Fix a mistake in PR JSBSim-Team#860 (commit e1af7ce) no engines were …
Browse files Browse the repository at this point in the history
…generated ever. (JSBSim-Team#954)
  • Loading branch information
ermarch authored and bcoconni committed Sep 2, 2023
1 parent 36ab627 commit 595e578
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 28 deletions.
6 changes: 1 addition & 5 deletions utils/aeromatic++/AeroBiplane.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,7 @@ Biplane::Biplane(Aeromatic *p) : Aircraft(p)
_subclasses.push_back("Vintage Biplane");
_subclasses.push_back("Modern biplane");

if (aircraft->no_engines > 0) {
_systems.push_back(new Propulsion(_aircraft));
} else {
_warnings.push_back("No engine specified.");
}
_systems.push_back(new Propulsion(_aircraft));
_systems.push_back(new CableControls(_aircraft));
_systems.push_back(new LandingGear(_aircraft));
_systems.push_back(new Flaps(_aircraft));
Expand Down
6 changes: 1 addition & 5 deletions utils/aeromatic++/AeroFighterJet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,7 @@ Fighter::Fighter(Aeromatic *p) : Aircraft(p)
{
_description = "Fighter Jet";

if (_aircraft->_no_engines > 0) {
_systems.push_back(new Propulsion(_aircraft));
} else {
_warnings.push_back("No engine specified.");
}
_systems.push_back(new Propulsion(_aircraft));
_systems.push_back(new Controls(_aircraft));
_systems.push_back(new LandingGear(_aircraft));
_systems.push_back(new Flaps(_aircraft));
Expand Down
6 changes: 1 addition & 5 deletions utils/aeromatic++/AeroHighPerformance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,7 @@ Performance::Performance(Aeromatic *p) : Aircraft(p)
_subclasses.push_back("Aerobatic");
_subclasses.push_back("Air Racer");

if (_aircraft->_no_engines > 0) {
_systems.push_back(new Propulsion(_aircraft));
} else {
_warnings.push_back("No engine specified.");
}
_systems.push_back(new Propulsion(_aircraft));
_systems.push_back(new CableControls(_aircraft));
_systems.push_back(new LandingGear(_aircraft));
_systems.push_back(new Flaps(_aircraft));
Expand Down
6 changes: 1 addition & 5 deletions utils/aeromatic++/AeroJetTransport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,7 @@ JetTransport::JetTransport(Aeromatic *p) : Aircraft(p)
_subclasses.push_back("Passenger Jet Airliner");
_subclasses.push_back("Transonic Jet Transport");

if (_aircraft->_no_engines > 0) {
_systems.push_back(new Propulsion(_aircraft));
} else {
_warnings.push_back("No engine specified.");
}
_systems.push_back(new Propulsion(_aircraft));
_systems.push_back(new ThrustReverse(_aircraft));
_systems.push_back(new Controls(_aircraft));
_systems.push_back(new LandingGear(_aircraft));
Expand Down
4 changes: 1 addition & 3 deletions utils/aeromatic++/AeroLightGA.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,7 @@ Light::Light(Aeromatic *p) : Aircraft(p)
_subclasses.push_back("Glider");
_subclasses.push_back("Small Commuter");

if (_aircraft->_no_engines > 0) {
_systems.push_back(new Propulsion(_aircraft));
}
_systems.push_back(new Propulsion(_aircraft));
_systems.push_back(new CableControls(_aircraft));
_systems.push_back(new LandingGear(_aircraft));
_systems.push_back(new Flaps(_aircraft));
Expand Down
6 changes: 1 addition & 5 deletions utils/aeromatic++/AeroPropTransport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,7 @@ PropTransport::PropTransport(Aeromatic *p) : Aircraft(p)
_subclasses.push_back("Propeller Airliner");
_subclasses.push_back("Propeller Transport");

if (_aircraft->_no_engines > 0) {
_systems.push_back(new Propulsion(_aircraft));
} else {
_warnings.push_back("No engine specified.");
}
_systems.push_back(new Propulsion(_aircraft));
_systems.push_back(new Controls(_aircraft));
_systems.push_back(new LandingGear(_aircraft));
_systems.push_back(new Flaps(_aircraft));
Expand Down

0 comments on commit 595e578

Please sign in to comment.