From: Paramat Date: Fri, 4 May 2018 17:22:56 +0000 (+0100) Subject: Cavegen: Allow small RandomWalk caves to generate beyond mapchunk border X-Git-Tag: 5.0.0~421 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=21c720755bfc9fa54fbb2722e0dd5cfbd96f8814;p=oweals%2Fminetest.git Cavegen: Allow small RandomWalk caves to generate beyond mapchunk border --- 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;