summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2012-04-07 14:08:49 +0300
committerPerttu Ahola <celeron55@gmail.com>2012-04-07 14:08:49 +0300
commita4dc6f2c7629f97081c2504380430dc1c498754e (patch)
tree0478275b4f75db2db1a11a016df1e68237ccc568
parent5608f12f9b4e77936436048abf01b4d7edc74871 (diff)
downloadminetest-a4dc6f2c7629f97081c2504380430dc1c498754e.tar.gz
minetest-a4dc6f2c7629f97081c2504380430dc1c498754e.tar.bz2
minetest-a4dc6f2c7629f97081c2504380430dc1c498754e.zip
Tune mapgen a bit
-rw-r--r--src/mapgen.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mapgen.cpp b/src/mapgen.cpp
index 0b8832ece..d3ba6a973 100644
--- a/src/mapgen.cpp
+++ b/src/mapgen.cpp
@@ -1276,7 +1276,7 @@ bool get_have_beach(u64 seed, v2s16 p2d)
{
// Determine whether to have sand here
double sandnoise = noise2d_perlin(
- 0.5+(float)p2d.X/500, 0.5+(float)p2d.Y/500,
+ 0.2+(float)p2d.X/250, 0.7+(float)p2d.Y/250,
seed+59420, 3, 0.50);
return (sandnoise > 0.15);
@@ -1755,7 +1755,7 @@ void make_block(BlockMakeData *data)
MapNode addnode(c_dirt);
// Randomize mud amount
- s16 mud_add_amount = get_mud_add_amount(data->seed, p2d) / 2.0;
+ s16 mud_add_amount = get_mud_add_amount(data->seed, p2d) / 2.0 + 0.5;
// Find ground level
s16 surface_y = find_stone_level(vmanip, p2d, ndef);