diff options
author | Tycho Bickerstaff <work.tycho@gmail.com> | 2013-12-20 16:33:04 +0100 |
---|---|---|
committer | Tycho Bickerstaff <work.tycho@gmail.com> | 2013-12-20 16:33:04 +0100 |
commit | 32e6be002d70f8fec486f0127fc307a21f1ff43e (patch) | |
tree | 5601738de3331ff3bfa70bd286784bdd4ba60055 /src/Generating/StructGen.cpp | |
parent | made LUA shared unless STATIC_LUA is set (diff) | |
parent | Fixed warnings in HTTP parser. (diff) | |
download | cuberite-32e6be002d70f8fec486f0127fc307a21f1ff43e.tar cuberite-32e6be002d70f8fec486f0127fc307a21f1ff43e.tar.gz cuberite-32e6be002d70f8fec486f0127fc307a21f1ff43e.tar.bz2 cuberite-32e6be002d70f8fec486f0127fc307a21f1ff43e.tar.lz cuberite-32e6be002d70f8fec486f0127fc307a21f1ff43e.tar.xz cuberite-32e6be002d70f8fec486f0127fc307a21f1ff43e.tar.zst cuberite-32e6be002d70f8fec486f0127fc307a21f1ff43e.zip |
Diffstat (limited to 'src/Generating/StructGen.cpp')
-rw-r--r-- | src/Generating/StructGen.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/Generating/StructGen.cpp b/src/Generating/StructGen.cpp index 504c26238..da6227801 100644 --- a/src/Generating/StructGen.cpp +++ b/src/Generating/StructGen.cpp @@ -467,7 +467,7 @@ void cStructGenLakes::CreateLakeImage(int a_ChunkX, int a_ChunkZ, cBlockArea & a cChunkDef::HeightMap HeightMap; m_HeiGen.GenHeightMap(a_ChunkX, a_ChunkZ, HeightMap); HEIGHTTYPE MinHeight = HeightMap[0]; - for (int i = 1; i < ARRAYCOUNT(HeightMap); i++) + for (size_t i = 1; i < ARRAYCOUNT(HeightMap); i++) { if (HeightMap[i] < MinHeight) { @@ -646,7 +646,7 @@ void cStructGenDirectOverhangs::GenStructures(cChunkDesc & a_ChunkDesc) bool cStructGenDirectOverhangs::HasWantedBiome(cChunkDesc & a_ChunkDesc) const { cChunkDef::BiomeMap & Biomes = a_ChunkDesc.GetBiomeMap(); - for (int i = 0; i < ARRAYCOUNT(Biomes); i++) + for (size_t i = 0; i < ARRAYCOUNT(Biomes); i++) { switch (Biomes[i]) { @@ -655,6 +655,10 @@ bool cStructGenDirectOverhangs::HasWantedBiome(cChunkDesc & a_ChunkDesc) const { return true; } + default: + { + break; + } } } // for i return false; |