summaryrefslogtreecommitdiffstats
path: root/src/Entities/Minecart.cpp
diff options
context:
space:
mode:
authorjfhumann <j.f.humann@gmail.com>2014-04-19 20:51:52 +0200
committerjfhumann <j.f.humann@gmail.com>2014-04-19 20:51:52 +0200
commitf48d43f050683488b4cdbddcc92cfc7804112c11 (patch)
tree1fb33ed7227f1099851338937a5c658368774f01 /src/Entities/Minecart.cpp
parentDeclared one mutex as mutable in order to allow for const correct get accessors. (diff)
downloadcuberite-f48d43f050683488b4cdbddcc92cfc7804112c11.tar
cuberite-f48d43f050683488b4cdbddcc92cfc7804112c11.tar.gz
cuberite-f48d43f050683488b4cdbddcc92cfc7804112c11.tar.bz2
cuberite-f48d43f050683488b4cdbddcc92cfc7804112c11.tar.lz
cuberite-f48d43f050683488b4cdbddcc92cfc7804112c11.tar.xz
cuberite-f48d43f050683488b4cdbddcc92cfc7804112c11.tar.zst
cuberite-f48d43f050683488b4cdbddcc92cfc7804112c11.zip
Diffstat (limited to 'src/Entities/Minecart.cpp')
-rw-r--r--src/Entities/Minecart.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Entities/Minecart.cpp b/src/Entities/Minecart.cpp
index db55eb058..7fe0b3cb1 100644
--- a/src/Entities/Minecart.cpp
+++ b/src/Entities/Minecart.cpp
@@ -796,7 +796,8 @@ bool cMinecart::TestBlockCollision(NIBBLETYPE a_RailMeta)
BLOCKTYPE BlockXM = m_World->GetBlock(POSX_TOINT - 1, POSY_TOINT, POSZ_TOINT);
BLOCKTYPE BlockXP = m_World->GetBlock(POSX_TOINT + 1, POSY_TOINT, POSZ_TOINT);
BLOCKTYPE BlockZM = m_World->GetBlock(POSX_TOINT, POSY_TOINT, POSZ_TOINT - 1);
- BLOCKTYPE BlockZP = m_World->GetBlock(POSX_TOINT, POSY_TOINT, POSZ_TOINT + 1);
+ // FIXME: Should the next line be POSZ_TOINT + 1? Else add some documenttation why - 1
+ BLOCKTYPE BlockZP = m_World->GetBlock(POSX_TOINT, POSY_TOINT, POSZ_TOINT - 1);
if (
(!IsBlockRail(BlockXM) && cBlockInfo::IsSolid(BlockXM)) ||
(!IsBlockRail(BlockXP) && cBlockInfo::IsSolid(BlockXP)) ||