summaryrefslogtreecommitdiffstats
path: root/src/Generating/FinishGen.cpp
diff options
context:
space:
mode:
authorSTRWarrior <niels.breuker@hotmail.nl>2014-07-20 16:31:28 +0200
committerSTRWarrior <niels.breuker@hotmail.nl>2014-07-20 16:31:28 +0200
commit51ad6cd1b22914aecd7e27d6a4a35853459fdb94 (patch)
tree049f06593223d3e613a40b263356fd75f7736d24 /src/Generating/FinishGen.cpp
parentFirst attempt for a new foliage finisher (diff)
downloadcuberite-51ad6cd1b22914aecd7e27d6a4a35853459fdb94.tar
cuberite-51ad6cd1b22914aecd7e27d6a4a35853459fdb94.tar.gz
cuberite-51ad6cd1b22914aecd7e27d6a4a35853459fdb94.tar.bz2
cuberite-51ad6cd1b22914aecd7e27d6a4a35853459fdb94.tar.lz
cuberite-51ad6cd1b22914aecd7e27d6a4a35853459fdb94.tar.xz
cuberite-51ad6cd1b22914aecd7e27d6a4a35853459fdb94.tar.zst
cuberite-51ad6cd1b22914aecd7e27d6a4a35853459fdb94.zip
Diffstat (limited to 'src/Generating/FinishGen.cpp')
-rw-r--r--src/Generating/FinishGen.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Generating/FinishGen.cpp b/src/Generating/FinishGen.cpp
index 06c1dcbbe..86f5711a7 100644
--- a/src/Generating/FinishGen.cpp
+++ b/src/Generating/FinishGen.cpp
@@ -170,8 +170,7 @@ void cFinishGenFoliage::GenFinish(cChunkDesc & a_ChunkDesc)
for (int z = 1; z < cChunkDef::Width; z++)
{
int zz = z + a_ChunkDesc.GetChunkZ();
- //if (true)
- if (m_Noise.CubicNoise2D((float) xx + m_Noise.CubicNoise1D(xx), zz + m_Noise.CubicNoise1D(zz)) < GetBiomeDensity(a_ChunkDesc.GetBiome(x, z)))
+ if (m_Noise.CubicNoise2D((float) xx + m_Noise.CubicNoise1D(xx), (float) zz + m_Noise.CubicNoise1D(zz)) < GetBiomeDensity(a_ChunkDesc.GetBiome(x, z)))
{
for (int y = a_ChunkDesc.GetHeight(x, z) + 1; y >= 1; y--)
{