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; }