diff options
author | jfhumann <j.f.humann@gmail.com> | 2014-04-21 14:04:36 +0200 |
---|---|---|
committer | jfhumann <j.f.humann@gmail.com> | 2014-04-21 14:04:36 +0200 |
commit | 865e8e22e54340606d8008e13172cb61d326d009 (patch) | |
tree | 0ff984b1aabdeaad0cfae71770ad7fa3d639f3e1 /src/Entities/Minecart.cpp | |
parent | Fixed Flint and Steel, reverted Minecart change, renamed a parameter name (diff) | |
download | cuberite-865e8e22e54340606d8008e13172cb61d326d009.tar cuberite-865e8e22e54340606d8008e13172cb61d326d009.tar.gz cuberite-865e8e22e54340606d8008e13172cb61d326d009.tar.bz2 cuberite-865e8e22e54340606d8008e13172cb61d326d009.tar.lz cuberite-865e8e22e54340606d8008e13172cb61d326d009.tar.xz cuberite-865e8e22e54340606d8008e13172cb61d326d009.tar.zst cuberite-865e8e22e54340606d8008e13172cb61d326d009.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Entities/Minecart.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Entities/Minecart.cpp b/src/Entities/Minecart.cpp index 7fe0b3cb1..db55eb058 100644 --- a/src/Entities/Minecart.cpp +++ b/src/Entities/Minecart.cpp @@ -796,8 +796,7 @@ 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); - // 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); + BLOCKTYPE BlockZP = m_World->GetBlock(POSX_TOINT, POSY_TOINT, POSZ_TOINT + 1); if ( (!IsBlockRail(BlockXM) && cBlockInfo::IsSolid(BlockXM)) || (!IsBlockRail(BlockXP) && cBlockInfo::IsSolid(BlockXP)) || |