diff options
author | Perttu Ahola <celeron55@gmail.com> | 2012-03-27 22:41:07 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2012-03-27 22:41:07 +0300 |
commit | 20e025b3d8d0c6efd2b07087474147640799fe3a (patch) | |
tree | 1c946235a58d8b1a43fb33028a85a885d9cfb2e5 /src | |
parent | 10591d20806cffeb5d0989624ab9c7b376c0ea0c (diff) | |
download | minetest-20e025b3d8d0c6efd2b07087474147640799fe3a.tar.gz minetest-20e025b3d8d0c6efd2b07087474147640799fe3a.tar.bz2 minetest-20e025b3d8d0c6efd2b07087474147640799fe3a.zip |
Try to make background/fog/sky color selection work better
Diffstat (limited to 'src')
-rw-r--r-- | src/clientmap.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/clientmap.cpp b/src/clientmap.cpp index 7bf6b2f46..23fe44186 100644 --- a/src/clientmap.cpp +++ b/src/clientmap.cpp @@ -598,9 +598,9 @@ int ClientMap::getBackgroundBrightness(float max_d, u32 daylight_factor, if(z_directions[0].X < -99){ for(u32 i=0; i<sizeof(z_directions)/sizeof(*z_directions); i++){ z_directions[i] = v3f( - 0.01 * myrand_range(-80, 80), + 0.01 * myrand_range(-100, 100), 1.0, - 0.01 * myrand_range(-80, 80) + 0.01 * myrand_range(-100, 100) ); z_offsets[i] = 0.01 * myrand_range(0,100); } |