summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockVine.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-04-01 14:55:46 +0200
committermadmaxoft <github@xoft.cz>2014-04-01 14:58:17 +0200
commit42e30b6513c8f905d419dd6621ad11959eea9dc9 (patch)
treeb39128934b921247a36339194e9321688375a134 /src/Blocks/BlockVine.h
parentFixed clang warnings in cFile. (diff)
downloadcuberite-42e30b6513c8f905d419dd6621ad11959eea9dc9.tar
cuberite-42e30b6513c8f905d419dd6621ad11959eea9dc9.tar.gz
cuberite-42e30b6513c8f905d419dd6621ad11959eea9dc9.tar.bz2
cuberite-42e30b6513c8f905d419dd6621ad11959eea9dc9.tar.lz
cuberite-42e30b6513c8f905d419dd6621ad11959eea9dc9.tar.xz
cuberite-42e30b6513c8f905d419dd6621ad11959eea9dc9.tar.zst
cuberite-42e30b6513c8f905d419dd6621ad11959eea9dc9.zip
Diffstat (limited to '')
-rw-r--r--src/Blocks/BlockVine.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Blocks/BlockVine.h b/src/Blocks/BlockVine.h
index e796a45ae..7bb9dc484 100644
--- a/src/Blocks/BlockVine.h
+++ b/src/Blocks/BlockVine.h
@@ -197,14 +197,14 @@ public:
virtual NIBBLETYPE MetaMirrorXY(NIBBLETYPE a_Meta) override
{
// Bits 2 and 4 stay, bits 1 and 3 swap
- return ((a_Meta & 0x0a) | ((a_Meta & 0x01) << 2) | ((a_Meta & 0x04) >> 2));
+ return (NIBBLETYPE)((a_Meta & 0x0a) | ((a_Meta & 0x01) << 2) | ((a_Meta & 0x04) >> 2));
}
virtual NIBBLETYPE MetaMirrorYZ(NIBBLETYPE a_Meta) override
{
// Bits 1 and 3 stay, bits 2 and 4 swap
- return ((a_Meta & 0x05) | ((a_Meta & 0x02) << 2) | ((a_Meta & 0x08) >> 2));
+ return (NIBBLETYPE)((a_Meta & 0x05) | ((a_Meta & 0x02) << 2) | ((a_Meta & 0x08) >> 2));
}
} ;