]> git.mxchange.org Git - flightgear.git/commitdiff
Precipitation: use /environment/[rain|snow]-norm
authorTorsten Dreyer <Torsten@t3r.de>
Tue, 21 Dec 2010 08:59:23 +0000 (09:59 +0100)
committerTorsten Dreyer <Torsten@t3r.de>
Tue, 21 Dec 2010 08:59:23 +0000 (09:59 +0100)
Don't use the properties in /environment/metar but the properties
unter /environment, so these values can be set from other environment
controllers.

src/Environment/precipitation_mgr.cxx

index 29d64cde06c5cfb3adcc37278130b075856b6c89..727087f835b62e274ebb85fe6b02dd199017c91d 100644 (file)
@@ -228,8 +228,8 @@ void FGPrecipitationMgr::update(double dt)
     }
     else {
         // The aircraft is bellow the cloud layer
-        rain_intensity = fgGetDouble("/environment/metar/rain-norm", 0.0);
-        snow_intensity = fgGetDouble("/environment/metar/snow-norm", 0.0);
+        rain_intensity = fgGetDouble("/environment/rain-norm", 0.0);
+        snow_intensity = fgGetDouble("/environment/snow-norm", 0.0);
     }
 
     // Get the current and dew temperature