summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-12-20 15:44:56 +0100
committermadmaxoft <github@xoft.cz>2013-12-20 15:44:56 +0100
commit00911c5f94040e31a4f073ac72249645d506aab7 (patch)
tree87848b26f0c5c7946405292459e57cca942d61e6 /src
parentFixed clang warnings in Noise.cpp. (diff)
downloadcuberite-00911c5f94040e31a4f073ac72249645d506aab7.tar
cuberite-00911c5f94040e31a4f073ac72249645d506aab7.tar.gz
cuberite-00911c5f94040e31a4f073ac72249645d506aab7.tar.bz2
cuberite-00911c5f94040e31a4f073ac72249645d506aab7.tar.lz
cuberite-00911c5f94040e31a4f073ac72249645d506aab7.tar.xz
cuberite-00911c5f94040e31a4f073ac72249645d506aab7.tar.zst
cuberite-00911c5f94040e31a4f073ac72249645d506aab7.zip
Diffstat (limited to 'src')
-rw-r--r--src/Blocks/BlockDoor.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Blocks/BlockDoor.cpp b/src/Blocks/BlockDoor.cpp
index e71ccd368..e91211559 100644
--- a/src/Blocks/BlockDoor.cpp
+++ b/src/Blocks/BlockDoor.cpp
@@ -65,10 +65,10 @@ void cBlockDoorHandler::OnPlacedByPlayer(
{
NIBBLETYPE a_TopBlockMeta = 8;
if (
- (a_BlockMeta == 0) && (a_World->GetBlock(a_BlockX, a_BlockY, a_BlockZ - 1) == m_BlockType) ||
- (a_BlockMeta == 1) && (a_World->GetBlock(a_BlockX + 1, a_BlockY, a_BlockZ) == m_BlockType) ||
- (a_BlockMeta == 2) && (a_World->GetBlock(a_BlockX, a_BlockY, a_BlockZ + 1) == m_BlockType) ||
- (a_BlockMeta == 3) && (a_World->GetBlock(a_BlockX - 1, a_BlockY, a_BlockZ) == m_BlockType)
+ ((a_BlockMeta == 0) && (a_World->GetBlock(a_BlockX, a_BlockY, a_BlockZ - 1) == m_BlockType)) ||
+ ((a_BlockMeta == 1) && (a_World->GetBlock(a_BlockX + 1, a_BlockY, a_BlockZ) == m_BlockType)) ||
+ ((a_BlockMeta == 2) && (a_World->GetBlock(a_BlockX, a_BlockY, a_BlockZ + 1) == m_BlockType)) ||
+ ((a_BlockMeta == 3) && (a_World->GetBlock(a_BlockX - 1, a_BlockY, a_BlockZ) == m_BlockType))
)
{
a_TopBlockMeta = 9;