summaryrefslogtreecommitdiffstats
path: root/src/Defines.h
diff options
context:
space:
mode:
authortycho <work.tycho@gmail.com>2015-05-24 15:58:24 +0200
committertycho <work.tycho@gmail.com>2015-05-24 15:58:24 +0200
commit76a3165f09e729c07cc64b085ec320cbeb206d59 (patch)
treee38a75f890aaa171d76828c27a318d7f7114605b /src/Defines.h
parentDisable -Werror for warnings in tests. (diff)
downloadcuberite-76a3165f09e729c07cc64b085ec320cbeb206d59.tar
cuberite-76a3165f09e729c07cc64b085ec320cbeb206d59.tar.gz
cuberite-76a3165f09e729c07cc64b085ec320cbeb206d59.tar.bz2
cuberite-76a3165f09e729c07cc64b085ec320cbeb206d59.tar.lz
cuberite-76a3165f09e729c07cc64b085ec320cbeb206d59.tar.xz
cuberite-76a3165f09e729c07cc64b085ec320cbeb206d59.tar.zst
cuberite-76a3165f09e729c07cc64b085ec320cbeb206d59.zip
Diffstat (limited to 'src/Defines.h')
-rw-r--r--src/Defines.h18
1 files changed, 14 insertions, 4 deletions
diff --git a/src/Defines.h b/src/Defines.h
index 71288b430..67d29f7a9 100644
--- a/src/Defines.h
+++ b/src/Defines.h
@@ -241,7 +241,9 @@ inline eBlockFace MirrorBlockFaceY(eBlockFace a_BlockFace)
case BLOCK_FACE_NONE:
case BLOCK_FACE_YM:
case BLOCK_FACE_YP:
+ {
return a_BlockFace;
+ };
}
}
@@ -254,14 +256,20 @@ 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:
+ {
return a_BlockFace;
+ }
}
}
@@ -280,7 +288,9 @@ inline eBlockFace RotateBlockFaceCW(eBlockFace a_BlockFace)
case BLOCK_FACE_NONE:
case BLOCK_FACE_YM:
case BLOCK_FACE_YP:
+ {
return a_BlockFace;
+ };
}
}