From a81103341e7f7de92758a961c0365a21aa84be17 Mon Sep 17 00:00:00 2001 From: Torsten Dreyer Date: Fri, 21 Jan 2011 10:35:04 +0100 Subject: [PATCH] Fix bug 255, support turbulence to weather menu --- src/Environment/Makefile.am | 2 +- src/Environment/environment.cxx | 8 -------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/src/Environment/Makefile.am b/src/Environment/Makefile.am index 90b732315..c3b1b5fbf 100644 --- a/src/Environment/Makefile.am +++ b/src/Environment/Makefile.am @@ -17,6 +17,6 @@ libEnvironment_a_SOURCES = \ ridge_lift.cxx ridge_lift.hxx \ ephemeris.cxx ephemeris.hxx \ terrainsampler.cxx terrainsampler.cxx \ - presets.cxx presets.cxx + presets.cxx presets.hxx INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/src diff --git a/src/Environment/environment.cxx b/src/Environment/environment.cxx index a27189b24..4e245554b 100644 --- a/src/Environment/environment.cxx +++ b/src/Environment/environment.cxx @@ -27,14 +27,9 @@ #include -#include -#include -#include #include -#include #include
-#include #include "environment.hxx" #include "atmosphere.hxx" @@ -472,9 +467,6 @@ FGEnvironment::get_wind_from_down_fps () const double FGEnvironment::get_turbulence_magnitude_norm () const { - if( sgEnviro.get_turbulence_enable_state() ) - if (fgGetBool("/environment/realwx/enabled")||fgGetBool("/environment/metar/valid")) - return sgEnviro.get_cloud_turbulence(); return turbulence_magnitude_norm; }