diff options
author | madmaxoft <github@xoft.cz> | 2013-12-20 16:01:34 +0100 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2013-12-20 16:01:34 +0100 |
commit | 8610d45ef18f075e7fa207732233ddbd69bb604b (patch) | |
tree | 3f7401c1dfb8926d1917f0c92762c3507ca4a51b /src/Generating/HeiGen.cpp | |
parent | Fixed melon and pumpkin growing. (diff) | |
download | cuberite-8610d45ef18f075e7fa207732233ddbd69bb604b.tar cuberite-8610d45ef18f075e7fa207732233ddbd69bb604b.tar.gz cuberite-8610d45ef18f075e7fa207732233ddbd69bb604b.tar.bz2 cuberite-8610d45ef18f075e7fa207732233ddbd69bb604b.tar.lz cuberite-8610d45ef18f075e7fa207732233ddbd69bb604b.tar.xz cuberite-8610d45ef18f075e7fa207732233ddbd69bb604b.tar.zst cuberite-8610d45ef18f075e7fa207732233ddbd69bb604b.zip |
Diffstat (limited to 'src/Generating/HeiGen.cpp')
-rw-r--r-- | src/Generating/HeiGen.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Generating/HeiGen.cpp b/src/Generating/HeiGen.cpp index ea6051371..2bf641089 100644 --- a/src/Generating/HeiGen.cpp +++ b/src/Generating/HeiGen.cpp @@ -18,7 +18,7 @@ void cHeiGenFlat::GenHeightMap(int a_ChunkX, int a_ChunkZ, cChunkDef::HeightMap & a_HeightMap) { - for (int i = 0; i < ARRAYCOUNT(a_HeightMap); i++) + for (size_t i = 0; i < ARRAYCOUNT(a_HeightMap); i++) { a_HeightMap[i] = m_Height; } @@ -421,7 +421,7 @@ NOISE_DATATYPE cHeiGenBiomal::GetHeightAt(int a_RelX, int a_RelZ, int a_ChunkX, NOISE_DATATYPE Height = 0; int BlockX = a_ChunkX * cChunkDef::Width + a_RelX; int BlockZ = a_ChunkZ * cChunkDef::Width + a_RelZ; - for (int i = 0; i < ARRAYCOUNT(BiomeCounts); i++) + for (size_t i = 0; i < ARRAYCOUNT(BiomeCounts); i++) { if (BiomeCounts[i] == 0) { |