summaryrefslogtreecommitdiffstats
path: root/src/Generating/Trees.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2019-09-01 09:30:00 +0200
committerMattes D <github@xoft.cz>2019-09-06 16:12:33 +0200
commita2ffa432b31096f2533ecb50f49ba450b29a2989 (patch)
tree5bdd754cad5e7b49e279ee0e21b9fa15c7c35d7b /src/Generating/Trees.cpp
parentUpdated LibEvent to release 2.1.11-stable. (#4383) (diff)
downloadcuberite-a2ffa432b31096f2533ecb50f49ba450b29a2989.tar
cuberite-a2ffa432b31096f2533ecb50f49ba450b29a2989.tar.gz
cuberite-a2ffa432b31096f2533ecb50f49ba450b29a2989.tar.bz2
cuberite-a2ffa432b31096f2533ecb50f49ba450b29a2989.tar.lz
cuberite-a2ffa432b31096f2533ecb50f49ba450b29a2989.tar.xz
cuberite-a2ffa432b31096f2533ecb50f49ba450b29a2989.tar.zst
cuberite-a2ffa432b31096f2533ecb50f49ba450b29a2989.zip
Diffstat (limited to 'src/Generating/Trees.cpp')
-rw-r--r--src/Generating/Trees.cpp87
1 files changed, 0 insertions, 87 deletions
diff --git a/src/Generating/Trees.cpp b/src/Generating/Trees.cpp
index 1456c1d15..824c8cecd 100644
--- a/src/Generating/Trees.cpp
+++ b/src/Generating/Trees.cpp
@@ -5,7 +5,6 @@
#include "Globals.h"
#include "Trees.h"
-#include "../World.h"
@@ -1056,89 +1055,3 @@ void GetSmallJungleTreeImage(int a_BlockX, int a_BlockY, int a_BlockZ, cNoise &
PushCoordBlocks(a_BlockX, hei, a_BlockZ, a_OtherBlocks, BigO1, ARRAYCOUNT(BigO1), E_BLOCK_LEAVES, E_META_LEAVES_JUNGLE);
a_OtherBlocks.push_back(sSetBlock(a_BlockX, hei, a_BlockZ, E_BLOCK_LEAVES, E_META_LEAVES_JUNGLE));
}
-
-
-
-
-
-bool GetLargeTreeAdjustment(cWorld & a_World, int & a_X, int & a_Y, int & a_Z, NIBBLETYPE a_Meta)
-{
- bool IsLarge = true;
- a_Meta = a_Meta & 0x07;
-
- // Check to see if we are the northwest corner
- for (int x = 0; x < 2; ++x)
- {
- for (int z = 0; z < 2; ++z)
- {
- NIBBLETYPE meta;
- BLOCKTYPE type;
- a_World.GetBlockTypeMeta(a_X + x, a_Y, a_Z + z, type, meta);
- IsLarge = IsLarge && (type == E_BLOCK_SAPLING) && ((a_Meta & meta) == a_Meta);
- }
- }
-
- if (IsLarge)
- {
- return true;
- }
-
- IsLarge = true;
- // Check to see if we are the southwest corner
- for (int x = 0; x < 2; ++x)
- {
- for (int z = 0; z > -2; --z)
- {
- NIBBLETYPE meta;
- BLOCKTYPE type;
- a_World.GetBlockTypeMeta(a_X + x, a_Y, a_Z + z, type, meta);
- IsLarge = IsLarge && (type == E_BLOCK_SAPLING) && ((a_Meta & meta) == a_Meta);
- }
- }
-
- if (IsLarge)
- {
- --a_Z;
- return true;
- }
-
- IsLarge = true;
- // Check to see if we are the southeast corner
- for (int x = 0; x > -2; --x)
- {
- for (int z = 0; z > -2; --z)
- {
- NIBBLETYPE meta;
- BLOCKTYPE type;
- a_World.GetBlockTypeMeta(a_X + x, a_Y, a_Z + z, type, meta);
- IsLarge = IsLarge && (type == E_BLOCK_SAPLING) && ((a_Meta & meta) == a_Meta);
- }
- }
-
- if (IsLarge)
- {
- --a_Z;
- --a_X;
- return true;
- }
-
- IsLarge = true;
- // Check to see if we are the northeast corner
- for (int x = 0; x > -2; --x)
- {
- for (int z = 0; z < 2; ++z)
- {
- NIBBLETYPE meta;
- BLOCKTYPE type;
- a_World.GetBlockTypeMeta(a_X + x, a_Y, a_Z + z, type, meta);
- IsLarge = IsLarge && (type == E_BLOCK_SAPLING) && ((a_Meta & meta) == a_Meta);
- }
- }
-
- if (IsLarge)
- {
- --a_X;
- }
-
- return IsLarge;
-}