summaryrefslogtreecommitdiffstats
path: root/src/Generating/FinishGen.cpp
diff options
context:
space:
mode:
authorSTRWarrior <niels.breuker@hotmail.nl>2014-01-18 14:16:07 +0100
committerSTRWarrior <niels.breuker@hotmail.nl>2014-01-18 14:16:07 +0100
commitca27f87272c647d583f6df2491c7f2cc4cd729a2 (patch)
tree5535157187f59402911ba031c33d438b10f555b5 /src/Generating/FinishGen.cpp
parentSome tweaks. (diff)
downloadcuberite-ca27f87272c647d583f6df2491c7f2cc4cd729a2.tar
cuberite-ca27f87272c647d583f6df2491c7f2cc4cd729a2.tar.gz
cuberite-ca27f87272c647d583f6df2491c7f2cc4cd729a2.tar.bz2
cuberite-ca27f87272c647d583f6df2491c7f2cc4cd729a2.tar.lz
cuberite-ca27f87272c647d583f6df2491c7f2cc4cd729a2.tar.xz
cuberite-ca27f87272c647d583f6df2491c7f2cc4cd729a2.tar.zst
cuberite-ca27f87272c647d583f6df2491c7f2cc4cd729a2.zip
Diffstat (limited to '')
-rw-r--r--src/Generating/FinishGen.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/Generating/FinishGen.cpp b/src/Generating/FinishGen.cpp
index 5726c5806..cd4ef13aa 100644
--- a/src/Generating/FinishGen.cpp
+++ b/src/Generating/FinishGen.cpp
@@ -41,9 +41,9 @@ static inline bool IsWater(BLOCKTYPE a_BlockType)
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
-// cFinishGenNetherSprinkleFoliage:
+// cFinishGenNetherClumpFoliage:
-void cFinishGenNetherSprinkleFoliage::GenFinish(cChunkDesc & a_ChunkDesc)
+void cFinishGenNetherClumpFoliage::GenFinish(cChunkDesc & a_ChunkDesc)
{
double ChunkX = a_ChunkDesc.GetChunkX() + 0.1; // We can't devide through 0 so lets add 0.1 to all the chunk coordinates.
double ChunkZ = a_ChunkDesc.GetChunkZ() + 0.1;
@@ -96,15 +96,15 @@ void cFinishGenNetherSprinkleFoliage::GenFinish(cChunkDesc & a_ChunkDesc)
NOISE_DATATYPE BlockType = m_Noise.CubicNoise1D((float) (ChunkX * ChunkZ) / (y * 0.1f));
if (BlockType < -0.7)
{
- TryPlaceClumb(a_ChunkDesc, PosX, y, PosZ, E_BLOCK_BROWN_MUSHROOM);
+ TryPlaceClump(a_ChunkDesc, PosX, y, PosZ, E_BLOCK_BROWN_MUSHROOM);
}
else if (BlockType < 0)
{
- TryPlaceClumb(a_ChunkDesc, PosX, y, PosZ, E_BLOCK_RED_MUSHROOM);
+ TryPlaceClump(a_ChunkDesc, PosX, y, PosZ, E_BLOCK_RED_MUSHROOM);
}
else if (BlockType < 0.7)
{
- TryPlaceClumb(a_ChunkDesc, PosX, y, PosZ, E_BLOCK_FIRE);
+ TryPlaceClump(a_ChunkDesc, PosX, y, PosZ, E_BLOCK_FIRE);
}
}
}
@@ -113,7 +113,7 @@ void cFinishGenNetherSprinkleFoliage::GenFinish(cChunkDesc & a_ChunkDesc)
-void cFinishGenNetherSprinkleFoliage::TryPlaceClumb(cChunkDesc & a_ChunkDesc, int a_RelX, int a_RelY, int a_RelZ, BLOCKTYPE a_Block)
+void cFinishGenNetherSprinkleFoliage::TryPlaceClump(cChunkDesc & a_ChunkDesc, int a_RelX, int a_RelY, int a_RelZ, BLOCKTYPE a_Block)
{
bool IsFireBlock = a_Block == E_BLOCK_FIRE;