summaryrefslogtreecommitdiffstats
path: root/src/Generating/BioGen.cpp
diff options
context:
space:
mode:
authorTycho Bickerstaff <work.tycho@gmail.com>2013-12-20 16:33:04 +0100
committerTycho Bickerstaff <work.tycho@gmail.com>2013-12-20 16:33:04 +0100
commit32e6be002d70f8fec486f0127fc307a21f1ff43e (patch)
tree5601738de3331ff3bfa70bd286784bdd4ba60055 /src/Generating/BioGen.cpp
parentmade LUA shared unless STATIC_LUA is set (diff)
parentFixed warnings in HTTP parser. (diff)
downloadcuberite-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/BioGen.cpp')
-rw-r--r--src/Generating/BioGen.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Generating/BioGen.cpp b/src/Generating/BioGen.cpp
index 98999dee9..f89b1800d 100644
--- a/src/Generating/BioGen.cpp
+++ b/src/Generating/BioGen.cpp
@@ -83,7 +83,7 @@ cBiomeGen * cBiomeGen::CreateBiomeGen(cIniFile & a_IniFile, int a_Seed, bool & a
void cBioGenConstant::GenBiomes(int a_ChunkX, int a_ChunkZ, cChunkDef::BiomeMap & a_BiomeMap)
{
- for (int i = 0; i < ARRAYCOUNT(a_BiomeMap); i++)
+ for (size_t i = 0; i < ARRAYCOUNT(a_BiomeMap); i++)
{
a_BiomeMap[i] = m_Biome;
}
@@ -277,7 +277,7 @@ void cBiomeGenList::InitializeBiomes(const AString & a_Biomes)
biJungleHills,
} ;
m_Biomes.reserve(ARRAYCOUNT(Biomes));
- for (int i = 0; i < ARRAYCOUNT(Biomes); i++)
+ for (size_t i = 0; i < ARRAYCOUNT(Biomes); i++)
{
m_Biomes.push_back(Biomes[i]);
}
@@ -655,7 +655,7 @@ void cBioGenMultiStepMap::BuildTemperatureHumidityMaps(int a_ChunkX, int a_Chunk
LinearUpscale2DArrayInPlace(HumidityMap, 17, 17, 8, 8);
// Re-map into integral values in [0 .. 255] range:
- for (int idx = 0; idx < ARRAYCOUNT(a_TemperatureMap); idx++)
+ for (size_t idx = 0; idx < ARRAYCOUNT(a_TemperatureMap); idx++)
{
a_TemperatureMap[idx] = std::max(0, std::min(255, (int)(128 + TemperatureMap[idx] * 128)));
a_HumidityMap[idx] = std::max(0, std::min(255, (int)(128 + HumidityMap[idx] * 128)));