summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSTRWarrior <niels.breuker@hotmail.nl>2014-07-30 17:09:00 +0200
committerSTRWarrior <niels.breuker@hotmail.nl>2014-07-30 17:09:00 +0200
commit17b679f355b8a63175815418983662c17ee13686 (patch)
tree1f276727fb3b92b2f1d3ef4b4e06e92e9e15e866
parentAdded RoofedForest trees. (diff)
downloadcuberite-17b679f355b8a63175815418983662c17ee13686.tar
cuberite-17b679f355b8a63175815418983662c17ee13686.tar.gz
cuberite-17b679f355b8a63175815418983662c17ee13686.tar.bz2
cuberite-17b679f355b8a63175815418983662c17ee13686.tar.lz
cuberite-17b679f355b8a63175815418983662c17ee13686.tar.xz
cuberite-17b679f355b8a63175815418983662c17ee13686.tar.zst
cuberite-17b679f355b8a63175815418983662c17ee13686.zip
Diffstat (limited to '')
-rw-r--r--src/Generating/Trees.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/Generating/Trees.cpp b/src/Generating/Trees.cpp
index 87405608b..fb46a5e3b 100644
--- a/src/Generating/Trees.cpp
+++ b/src/Generating/Trees.cpp
@@ -830,8 +830,6 @@ void GetRoofedForestTreeImage(int a_BlockX, int a_BlockY, int a_BlockZ, cNoise &
// Create branches
for (int i = 0; i < 3; i++)
{
- //int x = (a_Noise.IntNoise3D(a_BlockX + 32 * a_Seq, a_BlockY * i, a_BlockZ + 32 * a_Seq) < 0 ? -1 : 2);
- //int z = (a_Noise.IntNoise3D(a_BlockX - 32 * a_Seq, a_BlockY * i, a_BlockZ - 32 * a_Seq) < 0 ? -1 : 2);
int x = (a_Noise.IntNoise3DInt(a_BlockX + 32 * a_Seq, a_BlockY * i, a_BlockZ + 32 * a_Seq) % 3) - 1;
int z = (a_Noise.IntNoise3DInt(a_BlockX - 32 * a_Seq, a_BlockY * i, a_BlockZ - 32 * a_Seq) % 3) - 1;
@@ -841,11 +839,11 @@ void GetRoofedForestTreeImage(int a_BlockX, int a_BlockY, int a_BlockZ, cNoise &
NOISE_DATATYPE Val1 = a_Noise.IntNoise2D(x, z);
if (Val1 < 0)
{
- x = a_BlockX + (Val1 < -0.5) ? -1 : 3;
+ x = a_BlockX + ((Val1 < -0.5) ? -1 : 3);
}
else
{
- z = a_BlockZ + (Val1 < 0.5) ? -1 : 3;
+ z = a_BlockZ + ((Val1 < 0.5) ? -1 : 3);
}
}