Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Cavegen: Allow small RandomWalk caves to generate beyond mapchunk border
  • Loading branch information
paramat committed May 4, 2018
1 parent 24b6bd0 commit 21c7207
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/mapgen/cavegen.cpp
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 21c7207

Please sign in to comment.