summaryrefslogtreecommitdiffstats
path: root/src/Defines.h
diff options
context:
space:
mode:
authortycho <work.tycho@gmail.com>2015-05-24 16:25:52 +0200
committertycho <work.tycho@gmail.com>2015-05-24 16:25:52 +0200
commit5ab650e4bb712f14181fceaedec2a20dda136d54 (patch)
tree4becaea37ee2cd0840eb89689404aeb312f3994f /src/Defines.h
parentFix clang 3.6 flags to only be used in clang 3.6 (diff)
downloadcuberite-5ab650e4bb712f14181fceaedec2a20dda136d54.tar
cuberite-5ab650e4bb712f14181fceaedec2a20dda136d54.tar.gz
cuberite-5ab650e4bb712f14181fceaedec2a20dda136d54.tar.bz2
cuberite-5ab650e4bb712f14181fceaedec2a20dda136d54.tar.lz
cuberite-5ab650e4bb712f14181fceaedec2a20dda136d54.tar.xz
cuberite-5ab650e4bb712f14181fceaedec2a20dda136d54.tar.zst
cuberite-5ab650e4bb712f14181fceaedec2a20dda136d54.zip
Diffstat (limited to '')
-rw-r--r--src/Defines.h24
1 files changed, 10 insertions, 14 deletions
diff --git a/src/Defines.h b/src/Defines.h
index 67d29f7a9..bbc69f79c 100644
--- a/src/Defines.h
+++ b/src/Defines.h
@@ -256,14 +256,10 @@ inline eBlockFace RotateBlockFaceCCW(eBlockFace a_BlockFace)
{
switch (a_BlockFace)
{
- case BLOCK_FACE_XM:
- return BLOCK_FACE_ZP;
- case BLOCK_FACE_XP:
- return BLOCK_FACE_ZM;
- case BLOCK_FACE_ZM:
- return BLOCK_FACE_XM;
- case BLOCK_FACE_ZP:
- return BLOCK_FACE_XP;
+ case BLOCK_FACE_XM: return BLOCK_FACE_ZP;
+ case BLOCK_FACE_XP: return BLOCK_FACE_ZM;
+ case BLOCK_FACE_ZM: return BLOCK_FACE_XM;
+ case BLOCK_FACE_ZP: return BLOCK_FACE_XP;
case BLOCK_FACE_NONE:
case BLOCK_FACE_YM:
case BLOCK_FACE_YP:
@@ -298,12 +294,12 @@ inline eBlockFace ReverseBlockFace(eBlockFace a_BlockFace)
{
switch (a_BlockFace)
{
- case BLOCK_FACE_YP: return BLOCK_FACE_YM;
- case BLOCK_FACE_XP: return BLOCK_FACE_XM;
- case BLOCK_FACE_ZP: return BLOCK_FACE_ZM;
- case BLOCK_FACE_YM: return BLOCK_FACE_YP;
- case BLOCK_FACE_XM: return BLOCK_FACE_XP;
- case BLOCK_FACE_ZM: return BLOCK_FACE_ZP;
+ case BLOCK_FACE_YP: return BLOCK_FACE_YM;
+ case BLOCK_FACE_XP: return BLOCK_FACE_XM;
+ case BLOCK_FACE_ZP: return BLOCK_FACE_ZM;
+ case BLOCK_FACE_YM: return BLOCK_FACE_YP;
+ case BLOCK_FACE_XM: return BLOCK_FACE_XP;
+ case BLOCK_FACE_ZM: return BLOCK_FACE_ZP;
case BLOCK_FACE_NONE: return a_BlockFace;
}
}