tweaking mapgenv2 settings for maximum awesomeness.
authorPerttu Ahola <celeron55@gmail.com>
Tue, 1 Feb 2011 15:42:39 +0000 (17:42 +0200)
committerPerttu Ahola <celeron55@gmail.com>
Tue, 1 Feb 2011 15:42:39 +0000 (17:42 +0200)
src/map.cpp

index 884482763f271fd44dce4cef85ed75fb18c477c2..a62694269610d0764b7ca8e97239c39f0030a6fa 100644 (file)
@@ -2317,12 +2317,15 @@ MapChunk* ServerMap::generateChunkRaw(v2s16 chunkpos,
                Add some random stone obstacles
        */
 
-       for(u32 ri=0; ri<10; ri++)
+       for(u32 ri=0; ri<15; ri++)
        {
+               // Randomize max height so usually stuff will be quite low
+               s16 maxheight_randomized = myrand_range(0, 30);
+
                // The size of these could actually be m_chunksize*MAP_BLOCKSIZE*2
                v3s16 ob_size(
                        myrand_range(5, stone_obstacle_max_size),
-                       myrand_range(0, 23),
+                       myrand_range(0, maxheight_randomized),
                        myrand_range(5, stone_obstacle_max_size)
                );
                v2s16 ob_place(