diff options
author | Julian Laubstein <julianlaubstein@yahoo.de> | 2015-12-24 00:03:04 +0100 |
---|---|---|
committer | Julian Laubstein <julianlaubstein@yahoo.de> | 2015-12-24 00:05:49 +0100 |
commit | d319c9dd58eab0b5640b46d3c69d07777d0e8620 (patch) | |
tree | 775da4f499cd0fbd7aa6ea17a61d187e84fc7287 /src | |
parent | Merge pull request #2808 from cuberite/freebsd32fix (diff) | |
download | cuberite-d319c9dd58eab0b5640b46d3c69d07777d0e8620.tar cuberite-d319c9dd58eab0b5640b46d3c69d07777d0e8620.tar.gz cuberite-d319c9dd58eab0b5640b46d3c69d07777d0e8620.tar.bz2 cuberite-d319c9dd58eab0b5640b46d3c69d07777d0e8620.tar.lz cuberite-d319c9dd58eab0b5640b46d3c69d07777d0e8620.tar.xz cuberite-d319c9dd58eab0b5640b46d3c69d07777d0e8620.tar.zst cuberite-d319c9dd58eab0b5640b46d3c69d07777d0e8620.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Defines.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/Defines.h b/src/Defines.h index 5ff583516..b0589d8a0 100644 --- a/src/Defines.h +++ b/src/Defines.h @@ -477,6 +477,30 @@ inline bool IsBlockTypeOfDirt(BLOCKTYPE a_BlockType) +inline bool IsBlockFence(BLOCKTYPE a_BlockType) +{ + switch (a_BlockType) + { + case E_BLOCK_FENCE: + case E_BLOCK_OAK_FENCE_GATE: + case E_BLOCK_NETHER_BRICK_FENCE: + case E_BLOCK_COBBLESTONE_WALL: + case E_BLOCK_DARK_OAK_FENCE: + case E_BLOCK_SPRUCE_FENCE_GATE: + case E_BLOCK_ACACIA_FENCE: + { + return true; + } + default: + { + return false; + } + } +} + + + + inline void AddFaceDirection(int & a_BlockX, int & a_BlockY, int & a_BlockZ, eBlockFace a_BlockFace, bool a_bInverse = false) // tolua_export { // tolua_export if (!a_bInverse) |