]> git.mxchange.org Git - flightgear.git/blobdiff - src/Environment/environment_mgr.cxx
Don't restore initial screen geometry because there is nothing in fg_os* to resize...
[flightgear.git] / src / Environment / environment_mgr.cxx
index f09237b48eb7c5d1958d140f25a9993261fdf7ff..c0d7ae5f902b435ee23514a65a06a83fea6ec68b 100644 (file)
@@ -16,7 +16,7 @@
 //
 // You should have received a copy of the GNU General Public License
 // along with this program; if not, write to the Free Software
-// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 //
 // $Id$
 
@@ -59,8 +59,8 @@ FGEnvironmentMgr::FGEnvironmentMgr ()
 FGEnvironmentMgr::~FGEnvironmentMgr ()
 {
   delete _environment;
-  delete _controller;
   remove_subsystem("controller");
+  delete _controller;
   delete fgClouds;
 }
 
@@ -189,6 +189,7 @@ FGEnvironmentMgr::bind ()
   fgTie("/environment/turbulence/use-cloud-turbulence", &sgEnviro,
       &SGEnviro::get_turbulence_enable_state,
       &SGEnviro::set_turbulence_enable_state);
+  sgEnviro.config(fgGetNode("/sim/rendering/precipitation"));
 }
 
 void