summaryrefslogtreecommitdiffstats
path: root/source/LineBlockTracer.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-11-16 17:11:32 +0100
committermadmaxoft <github@xoft.cz>2013-11-16 17:11:32 +0100
commit1480d6d64d70690251a149ad19fd75237d04dca9 (patch)
treebcea7b7c96466d90387afbbc117532d734e3e4fc /source/LineBlockTracer.cpp
parentAPIDump: Documented lxp, the XML parser class. (diff)
downloadcuberite-1480d6d64d70690251a149ad19fd75237d04dca9.tar
cuberite-1480d6d64d70690251a149ad19fd75237d04dca9.tar.gz
cuberite-1480d6d64d70690251a149ad19fd75237d04dca9.tar.bz2
cuberite-1480d6d64d70690251a149ad19fd75237d04dca9.tar.lz
cuberite-1480d6d64d70690251a149ad19fd75237d04dca9.tar.xz
cuberite-1480d6d64d70690251a149ad19fd75237d04dca9.tar.zst
cuberite-1480d6d64d70690251a149ad19fd75237d04dca9.zip
Diffstat (limited to 'source/LineBlockTracer.cpp')
-rw-r--r--source/LineBlockTracer.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/LineBlockTracer.cpp b/source/LineBlockTracer.cpp
index 7cc14089d..9fcbca915 100644
--- a/source/LineBlockTracer.cpp
+++ b/source/LineBlockTracer.cpp
@@ -179,9 +179,9 @@ bool cLineBlockTracer::MoveToNextBlock(void)
// Based on the wall hit, adjust the current coords
switch (Direction)
{
- case dirX: m_CurrentX += m_DirX; m_CurrentFace = (m_DirX > 0) ? BLOCK_FACE_EAST : BLOCK_FACE_WEST; break;
- case dirY: m_CurrentY += m_DirY; m_CurrentFace = (m_DirY > 0) ? BLOCK_FACE_BOTTOM : BLOCK_FACE_TOP; break;
- case dirZ: m_CurrentZ += m_DirZ; m_CurrentFace = (m_DirZ > 0) ? BLOCK_FACE_SOUTH : BLOCK_FACE_NORTH; break;
+ case dirX: m_CurrentX += m_DirX; m_CurrentFace = (m_DirX > 0) ? BLOCK_FACE_XM : BLOCK_FACE_XP; break;
+ case dirY: m_CurrentY += m_DirY; m_CurrentFace = (m_DirY > 0) ? BLOCK_FACE_YM : BLOCK_FACE_YP; break;
+ case dirZ: m_CurrentZ += m_DirZ; m_CurrentFace = (m_DirZ > 0) ? BLOCK_FACE_ZM : BLOCK_FACE_ZP; break;
case dirNONE: return false;
}
return true;