#include "environment_ctrl.hxx"
#include "fgclouds.hxx"
#include "precipitation_mgr.hxx"
+#include "ridge_lift.hxx"
class SGSky;
extern SGSky *thesky;
_precipitationManager = new FGPrecipitationMgr;
set_subsystem("precipitation", _precipitationManager);
+
+ set_subsystem("ridgelift", new FGRidgeLift);
}
FGEnvironmentMgr::~FGEnvironmentMgr ()
{
+ SGSubsystem * subsys;
+
+ subsys = get_subsystem( "ridgelift" );
+ remove_subsystem( "ridgelift" );
+ delete subsys;
+
remove_subsystem("precipitation");
delete _precipitationManager;
#include <FDM/fdm_shell.hxx>
#include <Environment/environment_mgr.hxx>
-#include <Environment/ridge_lift.hxx>
#include "fg_init.hxx"
#include "fg_io.hxx"
// Initialize the weather modeling subsystem
globals->add_subsystem("environment", new FGEnvironmentMgr);
- ////////////////////////////////////////////////////////////////////
- // Initialize the ridge lift simulation.
- ////////////////////////////////////////////////////////////////////
-
- // Initialize the ridgelift subsystem
- globals->add_subsystem("ridgelift", new FGRidgeLift);
-
////////////////////////////////////////////////////////////////////
// Initialize the aircraft systems and instrumentation (before the
// autopilot.)