aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-02-01 17:42:39 +0200
committerPerttu Ahola <celeron55@gmail.com>2011-02-01 17:42:39 +0200
commit6834b39c96f1e381fef1ad5423864eaafde12c6a (patch)
tree22d803174e60744c131497e9f79e834d1bbfda94 /src
parent39faa654bfe654acd2622b6df38d81d2f4cfb35a (diff)
downloadminetest-6834b39c96f1e381fef1ad5423864eaafde12c6a.tar.gz
minetest-6834b39c96f1e381fef1ad5423864eaafde12c6a.tar.bz2
minetest-6834b39c96f1e381fef1ad5423864eaafde12c6a.zip
tweaking mapgenv2 settings for maximum awesomeness.
Diffstat (limited to 'src')
-rw-r--r--src/map.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/map.cpp b/src/map.cpp
index 884482763..a62694269 100644
--- a/src/map.cpp
+++ b/src/map.cpp
@@ -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(