1
0
Fork 0

Fixes to local weather requested by Thorsten RENK.

This commit is contained in:
Stuart Buchanan 2012-01-13 14:50:36 +00:00
parent a426476332
commit 9973a8a417
2 changed files with 3 additions and 2 deletions

View file

@ -2916,6 +2916,7 @@ if (compat_layer.features.terrain_presampling_active == 1)
print("Starting hard-coded terrain presampling");
setprop(lw~"tmp/presampling-status", "sampling");
setprop("/environment/terrain/area[0]/enabled", 1 );
setprop("/environment/terrain/area[0]/input/latitude-deg", blat );
setprop("/environment/terrain/area[0]/input/longitude-deg", blon );
setprop("/environment/terrain/area[0]/input/use-aircraft-position",1);

View file

@ -854,7 +854,7 @@ if (rand() < small_scale_persistence)
else
{rnd_store = rn;}
rn = 0.1;
#rn = 0.1;
if (rn > 0.8)
@ -1001,7 +1001,7 @@ local_weather.set_weather_station(blat, blon, alt_offset, vis, T, D, p * hp_to_i
# set a closed Nimbostratus layer
var alt = spread * 400.0 + local_weather.cloud_vertical_size_map["Nimbus"] * 0.5 * m_to_ft;
var alt = spread * 400.0;
var strength = 0.0;
#var alt = 3000.0;