summaryrefslogtreecommitdiffstats
path: root/src/Generating/Noise3DGenerator.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/Noise3DGenerator.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/Noise3DGenerator.cpp')
-rw-r--r--src/Generating/Noise3DGenerator.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Generating/Noise3DGenerator.cpp b/src/Generating/Noise3DGenerator.cpp
index 0c68957c0..2511bb656 100644
--- a/src/Generating/Noise3DGenerator.cpp
+++ b/src/Generating/Noise3DGenerator.cpp
@@ -30,7 +30,7 @@ public:
void DoTest1(void)
{
float In[3 * 3 * 3];
- for (int i = 0; i < ARRAYCOUNT(In); i++)
+ for (size_t i = 0; i < ARRAYCOUNT(In); i++)
{
In[i] = (float)(i % 5);
}
@@ -44,7 +44,7 @@ public:
void DoTest2(void)
{
float In[3 * 3];
- for (int i = 0; i < ARRAYCOUNT(In); i++)
+ for (size_t i = 0; i < ARRAYCOUNT(In); i++)
{
In[i] = (float)(i % 5);
}
@@ -170,7 +170,7 @@ void cNoise3DGenerator::Initialize(cWorld * a_World, cIniFile & a_IniFile)
void cNoise3DGenerator::GenerateBiomes(int a_ChunkX, int a_ChunkZ, cChunkDef::BiomeMap & a_BiomeMap)
{
- for (unsigned int i = 0; i < ARRAYCOUNT(a_BiomeMap); i++)
+ for (size_t i = 0; i < ARRAYCOUNT(a_BiomeMap); i++)
{
a_BiomeMap[i] = biExtremeHills;
}
@@ -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 (unsigned int i = 0; i < ARRAYCOUNT(Height); i++)
+ for (size_t i = 0; i < ARRAYCOUNT(Height); i++)
{
Height[i] = abs(Height[i]) * m_HeightAmplification + 1;
}