From fe00f7668408b8311e1c2324716d99b960e7245d Mon Sep 17 00:00:00 2001 From: Torsten Dreyer Date: Tue, 21 Dec 2010 09:59:23 +0100 Subject: [PATCH] Precipitation: use /environment/[rain|snow]-norm 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Environment/precipitation_mgr.cxx b/src/Environment/precipitation_mgr.cxx index 29d64cde0..727087f83 100644 --- a/src/Environment/precipitation_mgr.cxx +++ b/src/Environment/precipitation_mgr.cxx @@ -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