diff options
author | Alexander Harkness <bearbin@gmail.com> | 2013-11-16 19:44:19 +0100 |
---|---|---|
committer | Alexander Harkness <bearbin@gmail.com> | 2013-11-16 19:44:19 +0100 |
commit | 5687ca7bad4c83be16dd932c7f598fb699057a3e (patch) | |
tree | 320f9213ca26b8b26d41f6a7acfdcbce9b9f9468 | |
parent | Fixed yet another unsigned integer comparison. (diff) | |
download | cuberite-5687ca7bad4c83be16dd932c7f598fb699057a3e.tar cuberite-5687ca7bad4c83be16dd932c7f598fb699057a3e.tar.gz cuberite-5687ca7bad4c83be16dd932c7f598fb699057a3e.tar.bz2 cuberite-5687ca7bad4c83be16dd932c7f598fb699057a3e.tar.lz cuberite-5687ca7bad4c83be16dd932c7f598fb699057a3e.tar.xz cuberite-5687ca7bad4c83be16dd932c7f598fb699057a3e.tar.zst cuberite-5687ca7bad4c83be16dd932c7f598fb699057a3e.zip |
-rw-r--r-- | source/Generating/Noise3DGenerator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/Generating/Noise3DGenerator.cpp b/source/Generating/Noise3DGenerator.cpp index c47b3f8a2..e44f5f135 100644 --- a/source/Generating/Noise3DGenerator.cpp +++ b/source/Generating/Noise3DGenerator.cpp @@ -236,7 +236,7 @@ void cNoise3DGenerator::GenerateNoiseArray(int a_ChunkX, int a_ChunkZ, NOISE_DAT // Precalculate a "height" array: NOISE_DATATYPE Height[DIM_X * DIM_Z]; // Output for the cubic noise heightmap ("source") m_Cubic.Generate2D(Height, DIM_X, DIM_Z, StartX / 25, EndX / 25, StartZ / 25, EndZ / 25); - for (int i = 0; i < ARRAYCOUNT(Height); i++) + for (unsigned int i = 0; i < ARRAYCOUNT(Height); i++) { Height[i] = abs(Height[i]) * m_HeightAmplification + 1; } |