projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c5c727d
)
Mgv7: Limit pseudorandom caves to surface mapchunk or below
author
paramat
<mat.gregory@virginmedia.com>
Tue, 15 Mar 2016 17:28:29 +0000
(17:28 +0000)
committer
paramat
<mat.gregory@virginmedia.com>
Sat, 19 Mar 2016 17:56:35 +0000
(17:56 +0000)
To avoid bright caves at mapchunk borders when generating mapchunks upwards
src/mapgen_v7.cpp
patch
|
blob
|
history
diff --git
a/src/mapgen_v7.cpp
b/src/mapgen_v7.cpp
index 24867623cec11b551ce329d9f8016e89ded8a473..9e3e3f1a8699e60776e1106a1d223b3357fb9ea1 100644
(file)
--- a/
src/mapgen_v7.cpp
+++ b/
src/mapgen_v7.cpp
@@
-912,6
+912,9
@@
void MapgenV7::generateCaves(s16 max_stone_y)
}
}
+ if (node_min.Y >= water_level)
+ return;
+
PseudoRandom ps(blockseed + 21343);
u32 bruises_count = ps.range(0, 2);
for (u32 i = 0; i < bruises_count; i++) {