1
0
Fork 0

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.
This commit is contained in:
Torsten Dreyer 2010-12-21 09:59:23 +01:00
parent f8c7f95745
commit fe00f76684

View 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