projects
/
zefram
/
minetest
/
minetest_engine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5608f12
)
Tune mapgen a bit
author
Perttu Ahola
<celeron55@gmail.com>
Sat, 7 Apr 2012 11:08:49 +0000
(14:08 +0300)
committer
Perttu Ahola
<celeron55@gmail.com>
Sat, 7 Apr 2012 11:08:49 +0000
(14:08 +0300)
src/mapgen.cpp
patch
|
blob
|
history
diff --git
a/src/mapgen.cpp
b/src/mapgen.cpp
index 0b8832ece089bfb356e133153b124488f23b4afc..d3ba6a973e2d3e4315c46ed4a19d00caf5e4f0ec 100644
(file)
--- 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/50
0,
+ 0.
2+(float)p2d.X/250, 0.7+(float)p2d.Y/25
0,
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);