diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-04-27 23:01:45 +0200 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-04-27 23:01:45 +0200 |
commit | 9794f8ddcb1ae19027eeb6d468b33a3c11c37cfb (patch) | |
tree | f4d8570e5a66651556b45f8fcb129f1e0cdb044b /source/Generating | |
parent | Noise3D made into Composable - both a HeightGen and a CompositionGen (diff) | |
download | cuberite-9794f8ddcb1ae19027eeb6d468b33a3c11c37cfb.tar cuberite-9794f8ddcb1ae19027eeb6d468b33a3c11c37cfb.tar.gz cuberite-9794f8ddcb1ae19027eeb6d468b33a3c11c37cfb.tar.bz2 cuberite-9794f8ddcb1ae19027eeb6d468b33a3c11c37cfb.tar.lz cuberite-9794f8ddcb1ae19027eeb6d468b33a3c11c37cfb.tar.xz cuberite-9794f8ddcb1ae19027eeb6d468b33a3c11c37cfb.tar.zst cuberite-9794f8ddcb1ae19027eeb6d468b33a3c11c37cfb.zip |
Diffstat (limited to 'source/Generating')
-rw-r--r-- | source/Generating/Noise3DGenerator.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/Generating/Noise3DGenerator.cpp b/source/Generating/Noise3DGenerator.cpp index d8ba5f690..4211f9529 100644 --- a/source/Generating/Noise3DGenerator.cpp +++ b/source/Generating/Noise3DGenerator.cpp @@ -479,6 +479,10 @@ void cNoise3DComposable::ComposeTerrain(cChunkDesc & a_ChunkDesc) {
int LastAir = a_ChunkDesc.GetHeight(x, z) + 1;
bool HasHadWater = false;
+ for (int y = LastAir; y < cChunkDef::Height; y++)
+ {
+ a_ChunkDesc.SetBlockType(x, y, z, E_BLOCK_AIR);
+ }
for (int y = LastAir - 1; y > 0; y--)
{
if (m_NoiseArray[x + 17 * z + 17 * 17 * y] > m_AirThreshold)
|