summaryrefslogtreecommitdiffstats
path: root/src/Generating
diff options
context:
space:
mode:
authorSTRWarrior <niels.breuker@hotmail.nl>2014-07-30 22:43:59 +0200
committerSTRWarrior <niels.breuker@hotmail.nl>2014-07-30 22:43:59 +0200
commit7821326370385ddcfe2ac28034727d02abf104da (patch)
treefce60f0bdb65f61b4781d57f18593992a65f9fed /src/Generating
parentMoved GetRoofedForestTreeImage content to GetDarkoakTreeImage (diff)
downloadcuberite-7821326370385ddcfe2ac28034727d02abf104da.tar
cuberite-7821326370385ddcfe2ac28034727d02abf104da.tar.gz
cuberite-7821326370385ddcfe2ac28034727d02abf104da.tar.bz2
cuberite-7821326370385ddcfe2ac28034727d02abf104da.tar.lz
cuberite-7821326370385ddcfe2ac28034727d02abf104da.tar.xz
cuberite-7821326370385ddcfe2ac28034727d02abf104da.tar.zst
cuberite-7821326370385ddcfe2ac28034727d02abf104da.zip
Diffstat (limited to 'src/Generating')
-rw-r--r--src/Generating/Trees.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Generating/Trees.cpp b/src/Generating/Trees.cpp
index 4786cad5a..32594d0b4 100644
--- a/src/Generating/Trees.cpp
+++ b/src/Generating/Trees.cpp
@@ -412,10 +412,10 @@ void GetAcaciaTreeImage(int a_BlockX, int a_BlockY, int a_BlockZ, cNoise & a_Noi
void GetDarkoakTreeImage(int a_BlockX, int a_BlockY, int a_BlockZ, cNoise & a_Noise, int a_Seq, sSetBlockVector & a_LogBlocks, sSetBlockVector & a_OtherBlocks)
{
- // Calculate a height
+ // Pick a height
int Height = 5 + (a_Noise.IntNoise3DInt(a_BlockX + 32 * a_Seq, a_BlockY, a_BlockZ + 32 * a_Seq) / 11) % 4;
- // Creat the trunk
+ // Create the trunk
for (int i = 0; i < Height; i++)
{
a_LogBlocks.push_back(sSetBlock(a_BlockX, a_BlockY + i, a_BlockZ, E_BLOCK_NEW_LOG, E_META_NEW_LOG_DARK_OAK_WOOD));