diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-02-21 13:29:05 +0100 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-02-21 13:29:05 +0100 |
commit | b4a68e58a9badb0f33d43a4cce9877935b2cc917 (patch) | |
tree | b9436d62cdd326166d6d0d3e6e35e04673d311f7 /source/cWorldGenerator.cpp | |
parent | Revised GNUmakefile for header file dependencies (again; this time it should work ;) (diff) | |
download | cuberite-b4a68e58a9badb0f33d43a4cce9877935b2cc917.tar cuberite-b4a68e58a9badb0f33d43a4cce9877935b2cc917.tar.gz cuberite-b4a68e58a9badb0f33d43a4cce9877935b2cc917.tar.bz2 cuberite-b4a68e58a9badb0f33d43a4cce9877935b2cc917.tar.lz cuberite-b4a68e58a9badb0f33d43a4cce9877935b2cc917.tar.xz cuberite-b4a68e58a9badb0f33d43a4cce9877935b2cc917.tar.zst cuberite-b4a68e58a9badb0f33d43a4cce9877935b2cc917.zip |
Diffstat (limited to 'source/cWorldGenerator.cpp')
-rw-r--r-- | source/cWorldGenerator.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/cWorldGenerator.cpp b/source/cWorldGenerator.cpp index 6fecfc2e6..c933cf804 100644 --- a/source/cWorldGenerator.cpp +++ b/source/cWorldGenerator.cpp @@ -188,6 +188,10 @@ void cWorldGenerator::GenerateTerrain(int a_ChunkX, int a_ChunkY, int a_ChunkZ, {
Height = 127 - Lower;
}
+ if (Height < -63)
+ {
+ Height = -63;
+ }
const int Top = Lower + Height;
const float WaveNoise = 1; // m_Noise.CubicNoise2D( xx*0.01f, zz*0.01f ) + 0.5f;
for( int y = 1; y < Top; ++y )
|