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:
parent
f8c7f95745
commit
fe00f76684
1 changed files with 2 additions and 2 deletions
|
@ -228,8 +228,8 @@ void FGPrecipitationMgr::update(double dt)
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// The aircraft is bellow the cloud layer
|
// The aircraft is bellow the cloud layer
|
||||||
rain_intensity = fgGetDouble("/environment/metar/rain-norm", 0.0);
|
rain_intensity = fgGetDouble("/environment/rain-norm", 0.0);
|
||||||
snow_intensity = fgGetDouble("/environment/metar/snow-norm", 0.0);
|
snow_intensity = fgGetDouble("/environment/snow-norm", 0.0);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get the current and dew temperature
|
// Get the current and dew temperature
|
||||||
|
|
Loading…
Reference in a new issue