summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2012-02-03 19:08:42 +0200
committerPerttu Ahola <celeron55@gmail.com>2012-03-27 19:09:08 +0300
commit4c876ac62eb6aab0a6b2ee215e02b8d181cdf1cb (patch)
tree0265dec8daa01314e84c871187daf05728871609 /src
parent66bf7b0b01d3dcff4c318d44c7bb58dba975c131 (diff)
downloadminetest-4c876ac62eb6aab0a6b2ee215e02b8d181cdf1cb.tar.gz
minetest-4c876ac62eb6aab0a6b2ee215e02b8d181cdf1cb.tar.bz2
minetest-4c876ac62eb6aab0a6b2ee215e02b8d181cdf1cb.zip
Tune caves
Diffstat (limited to 'src')
-rw-r--r--src/mapgen.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mapgen.cpp b/src/mapgen.cpp
index c6893eed7..77bd8a8b0 100644
--- a/src/mapgen.cpp
+++ b/src/mapgen.cpp
@@ -1461,12 +1461,10 @@ void make_block(BlockMakeData *data)
u32 bruises_count = volume_nodes * stone_surface_max_y / 40000000;
if(stone_surface_max_y < WATER_LEVEL - 20)
bruises_count = 0;
- /*u32 caves_count = 0;
- u32 bruises_count = 0;*/
for(u32 jj=0; jj<caves_count+bruises_count; jj++)
{
s16 min_tunnel_diameter = 2;
- s16 max_tunnel_diameter = 5;
+ s16 max_tunnel_diameter = myrand_range(4,5);
u16 tunnel_routepoints = 20;
v3f main_direction(0,0,0);