Skip to content
Permalink
Browse files

Cavegen: Allow small RandomWalk caves to generate beyond mapchunk border

  • Loading branch information
paramat committed May 4, 2018
1 parent 24b6bd0 commit 21c720755bfc9fa54fbb2722e0dd5cfbd96f8814
Showing with 1 addition and 4 deletions.
  1. +1 −4 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;

0 comments on commit 21c7207

Please sign in to comment.