Try to make background/fog/sky color selection work better
authorPerttu Ahola <celeron55@gmail.com>
Tue, 27 Mar 2012 19:41:07 +0000 (22:41 +0300)
committerPerttu Ahola <celeron55@gmail.com>
Tue, 27 Mar 2012 19:41:07 +0000 (22:41 +0300)
src/clientmap.cpp

index 7bf6b2f46e62870de5e2e221107bebe85cc0baef..23fe4418637915da0f4a01ad24736fe2aa65504e 100644 (file)
@@ -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);
                }