aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorParamat <paramat@users.noreply.github.com>2018-05-04 18:22:56 +0100
committerGitHub <noreply@github.com>2018-05-04 18:22:56 +0100
commit21c720755bfc9fa54fbb2722e0dd5cfbd96f8814 (patch)
treebe8196a1576d8152e26af035661fbadd65fc0cff
parent24b6bd0f679f3cc5ff07bb5eb5ee787c20d3a5e8 (diff)
downloadminetest-21c720755bfc9fa54fbb2722e0dd5cfbd96f8814.tar.gz
minetest-21c720755bfc9fa54fbb2722e0dd5cfbd96f8814.tar.bz2
minetest-21c720755bfc9fa54fbb2722e0dd5cfbd96f8814.zip
Cavegen: Allow small RandomWalk caves to generate beyond mapchunk border
-rw-r--r--src/mapgen/cavegen.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/mapgen/cavegen.cpp b/src/mapgen/cavegen.cpp
index 60aefb14d..363219f6d 100644
--- a/src/mapgen/cavegen.cpp
+++ b/src/mapgen/cavegen.cpp
@@ -569,9 +569,6 @@ void CavesRandomWalk::carveRoute(v3f vec, float f, bool randomize_xz)
else
vm->m_data[i] = airnode;
} else {
- if (c == CONTENT_IGNORE)
- continue;
-
vm->m_data[i] = airnode;
vm->m_flags[i] |= VMANIP_FLAG_CAVE;
}
@@ -874,7 +871,7 @@ void CavesV6::carveRoute(v3f vec, float f, bool randomize_xz,
vm->m_data[i] = airnode;
}
} else {
- if (c == CONTENT_IGNORE || c == CONTENT_AIR)
+ if (c == CONTENT_AIR)
continue;
vm->m_data[i] = airnode;