summaryrefslogtreecommitdiff
path: root/src/mapgen_v5.cpp
diff options
context:
space:
mode:
authorparamat <mat.gregory@virginmedia.com>2015-11-30 02:31:43 +0000
committerparamat <mat.gregory@virginmedia.com>2015-12-02 02:19:52 +0000
commite51ea66bd087e56b2e446f64bd4d185b4786325c (patch)
tree83bfe0742be0c276d1529cd551cd9469f748eb8d /src/mapgen_v5.cpp
parent97908cc65670d3f6cf2e286390bfea10f653aaa8 (diff)
downloadminetest-e51ea66bd087e56b2e446f64bd4d185b4786325c.tar.gz
minetest-e51ea66bd087e56b2e446f64bd4d185b4786325c.tar.bz2
minetest-e51ea66bd087e56b2e446f64bd4d185b4786325c.zip
Mgv5/v7/flat/fractal: More large pseudorandom caves
Mgv7/flat/fractal: Reduce tunnel noise spreads to 96
Diffstat (limited to 'src/mapgen_v5.cpp')
-rw-r--r--src/mapgen_v5.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mapgen_v5.cpp b/src/mapgen_v5.cpp
index 3d7e3bf83..92cf00202 100644
--- a/src/mapgen_v5.cpp
+++ b/src/mapgen_v5.cpp
@@ -518,7 +518,7 @@ void MapgenV5::generateCaves(int max_stone_y)
for (s16 x = node_min.X; x <= node_max.X; x++, i++, index++) {
float d1 = contour(noise_cave1->result[index]);
float d2 = contour(noise_cave2->result[index]);
- if (d1*d2 > 0.125) {
+ if (d1 * d2 > 0.125f) {
content_t c = vm->m_data[i].getContent();
if (!ndef->get(c).is_ground_content || c == CONTENT_AIR)
continue;
@@ -533,7 +533,7 @@ void MapgenV5::generateCaves(int max_stone_y)
return;
PseudoRandom ps(blockseed + 21343);
- u32 bruises_count = (ps.range(1, 4) == 1) ? ps.range(1, 2) : 0;
+ u32 bruises_count = ps.range(0, 2);
for (u32 i = 0; i < bruises_count; i++) {
CaveV5 cave(this, &ps);
cave.makeCave(node_min, node_max, max_stone_y);