summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockDoor.cpp
diff options
context:
space:
mode:
authornarroo <narroo@vt.edu>2014-03-26 13:54:17 +0100
committernarroo <narroo@vt.edu>2014-03-26 13:54:17 +0100
commit90415ff79886f63cacced59f202228ddac69765a (patch)
tree9a39389f1a6e89b8a287c7164402d79b917f59e7 /src/Blocks/BlockDoor.cpp
parentAdded a comment about the behavior of doors under mirros. Simply put, the current implementation of MetaMirror causes glitchy behavior. The door class itself needs to be edited. (I've got an idea on that....) (diff)
downloadcuberite-90415ff79886f63cacced59f202228ddac69765a.tar
cuberite-90415ff79886f63cacced59f202228ddac69765a.tar.gz
cuberite-90415ff79886f63cacced59f202228ddac69765a.tar.bz2
cuberite-90415ff79886f63cacced59f202228ddac69765a.tar.lz
cuberite-90415ff79886f63cacced59f202228ddac69765a.tar.xz
cuberite-90415ff79886f63cacced59f202228ddac69765a.tar.zst
cuberite-90415ff79886f63cacced59f202228ddac69765a.zip
Diffstat (limited to '')
-rw-r--r--src/Blocks/BlockDoor.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/Blocks/BlockDoor.cpp b/src/Blocks/BlockDoor.cpp
index 100f48e6c..479c68153 100644
--- a/src/Blocks/BlockDoor.cpp
+++ b/src/Blocks/BlockDoor.cpp
@@ -146,7 +146,8 @@ NIBBLETYPE cBlockDoorHandler::MetaMirrorXY(NIBBLETYPE a_Meta)
// Note: Currently, you can not properly mirror the hinges on a double door. The orientation of the door is stored
// in only the bottom tile while the hinge position is in the top tile. This function only operates on one tile at a time,
- // so the function can only see either the hinge position or orientation, but not both, at any given time.
+ // so the function can only see either the hinge position or orientation, but not both, at any given time. The class itself
+ // needs extra datamembers.
if (a_Meta & 0x08) return a_Meta;
// Holds open/closed meta data. 0x0C == 1100.
@@ -172,7 +173,9 @@ NIBBLETYPE cBlockDoorHandler::MetaMirrorYZ(NIBBLETYPE a_Meta)
// Note: Currently, you can not properly mirror the hinges on a double door. The orientation of the door is stored
// in only the bottom tile while the hinge position is in the top tile. This function only operates on one tile at a time,
- // so the function can only see either the hinge position or orientation, but not both, at any given time.
+ // so the function can only see either the hinge position or orientation, but not both, at any given time.The class itself
+ // needs extra datamembers.
+
if (a_Meta & 0x08) return a_Meta;
// Holds open/closed meta data. 0x0C == 1100.