summaryrefslogtreecommitdiffstats
path: root/src/Generating
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2016-06-12 07:57:47 +0200
committerGitHub <noreply@github.com>2016-06-12 07:57:47 +0200
commitb403ad4d68eb1e730d5b514d3bfceea0de932bfa (patch)
tree2c332eef23ae5eb816d08786fb2f87535b289ca5 /src/Generating
parentMerge pull request #3225 from cuberite/FixAutoAPI (diff)
parentNormalized Vector3 API to use the same capitalization as all else. (diff)
downloadcuberite-b403ad4d68eb1e730d5b514d3bfceea0de932bfa.tar
cuberite-b403ad4d68eb1e730d5b514d3bfceea0de932bfa.tar.gz
cuberite-b403ad4d68eb1e730d5b514d3bfceea0de932bfa.tar.bz2
cuberite-b403ad4d68eb1e730d5b514d3bfceea0de932bfa.tar.lz
cuberite-b403ad4d68eb1e730d5b514d3bfceea0de932bfa.tar.xz
cuberite-b403ad4d68eb1e730d5b514d3bfceea0de932bfa.tar.zst
cuberite-b403ad4d68eb1e730d5b514d3bfceea0de932bfa.zip
Diffstat (limited to '')
-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 9cde11877..c185f54d9 100644
--- a/src/Generating/Trees.cpp
+++ b/src/Generating/Trees.cpp
@@ -445,7 +445,7 @@ void GetLargeAppleTreeBranch(int a_BlockX, int a_BlockY, int a_BlockZ, int a_Bra
return;
}
Direction -= a_Direction;
- Direction.clamp(-1.0, 1.0);
+ Direction.Clamp(-1.0, 1.0);
a_LogBlocks.push_back(sSetBlock(FloorC(CurrentPos.x), FloorC(CurrentPos.y), FloorC(CurrentPos.z), E_BLOCK_LOG, GetLogMetaFromDirection(E_META_LOG_APPLE, Direction)));
}
}
@@ -456,7 +456,7 @@ void GetLargeAppleTreeBranch(int a_BlockX, int a_BlockY, int a_BlockZ, int a_Bra
NIBBLETYPE GetLogMetaFromDirection(NIBBLETYPE a_BlockMeta, Vector3d a_Direction)
{
- a_Direction.abs();
+ a_Direction.Abs();
if ((a_Direction.y > a_Direction.x) && (a_Direction.y > a_Direction.z))
{