summaryrefslogtreecommitdiffstats
path: root/src/Generating/StructGen.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-12-20 16:01:34 +0100
committermadmaxoft <github@xoft.cz>2013-12-20 16:01:34 +0100
commit8610d45ef18f075e7fa207732233ddbd69bb604b (patch)
tree3f7401c1dfb8926d1917f0c92762c3507ca4a51b /src/Generating/StructGen.cpp
parentFixed melon and pumpkin growing. (diff)
downloadcuberite-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/StructGen.cpp')
-rw-r--r--src/Generating/StructGen.cpp8
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;