diff options
author | madmaxoft <github@xoft.cz> | 2013-12-20 15:44:56 +0100 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2013-12-20 15:44:56 +0100 |
commit | 00911c5f94040e31a4f073ac72249645d506aab7 (patch) | |
tree | 87848b26f0c5c7946405292459e57cca942d61e6 /src/Blocks/BlockDoor.cpp | |
parent | Fixed clang warnings in Noise.cpp. (diff) | |
download | cuberite-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/Blocks/BlockDoor.cpp')
-rw-r--r-- | src/Blocks/BlockDoor.cpp | 8 |
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; |