]> git.mxchange.org Git - flightgear.git/commitdiff
Revert the previous patch, wind-heading-from is part of a range, not a direction...
authorehofman <ehofman>
Sat, 28 Feb 2004 12:08:01 +0000 (12:08 +0000)
committerehofman <ehofman>
Sat, 28 Feb 2004 12:08:01 +0000 (12:08 +0000)
src/Environment/environment_ctrl.cxx

index 8e0e5783fe77d17c64c96ba66809d44baa95d22e..e5114a2a25377e45f5f013dd91700678dbbd7354 100644 (file)
@@ -367,13 +367,8 @@ static void set_dewpoint_at_altitude( float dewpoint_degc, float altitude_ft ) {
 void
 FGMetarEnvironmentCtrl::update_env_config ()
 {
-    double wind_dir1 = fgGetDouble("/environment/metar/base-wind-range-from");
-    double wind_dir2 = fgGetDouble("/environment/metar/base-wind-range-to");
-
-    wind_dir1 = fmod (wind_dir1 + 180.0, 360.0);
-    wind_dir2 = fmod (wind_dir2 + 180.0, 360.0);
-
-    fgSetupWind( wind_dir1, wind_dir2,
+    fgSetupWind( fgGetDouble("/environment/metar/base-wind-range-from"),
+                 fgGetDouble("/environment/metar/base-wind-range-to"),
                  fgGetDouble("/environment/metar/base-wind-speed-kt"),
                  fgGetDouble("/environment/metar/gust-wind-speed-kt") );