diff options
author | andrew <xdotftw@gmail.com> | 2014-03-01 20:34:19 +0100 |
---|---|---|
committer | andrew <xdotftw@gmail.com> | 2014-03-01 20:34:19 +0100 |
commit | d73cdba1f66a92f011ac881b581595c0959139ef (patch) | |
tree | a5c62bbc0cf7c52727e96e348a5978698c6c7a5d /src/Tracer.cpp | |
parent | Refactored global block property arrays (diff) | |
download | cuberite-d73cdba1f66a92f011ac881b581595c0959139ef.tar cuberite-d73cdba1f66a92f011ac881b581595c0959139ef.tar.gz cuberite-d73cdba1f66a92f011ac881b581595c0959139ef.tar.bz2 cuberite-d73cdba1f66a92f011ac881b581595c0959139ef.tar.lz cuberite-d73cdba1f66a92f011ac881b581595c0959139ef.tar.xz cuberite-d73cdba1f66a92f011ac881b581595c0959139ef.tar.zst cuberite-d73cdba1f66a92f011ac881b581595c0959139ef.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Tracer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Tracer.cpp b/src/Tracer.cpp index ef136302f..968a64439 100644 --- a/src/Tracer.cpp +++ b/src/Tracer.cpp @@ -226,7 +226,7 @@ bool cTracer::Trace( const Vector3f & a_Start, const Vector3f & a_Direction, int BLOCKTYPE BlockID = m_World->GetBlock(pos.x, pos.y, pos.z); // Block is counted as a collision if we are not doing a line of sight and it is solid, // or if the block is not air and not water. That way mobs can still see underwater. - if ((!a_LineOfSight && g_BlockIsSolid[BlockID]) || (a_LineOfSight && (BlockID != E_BLOCK_AIR) && !IsBlockWater(BlockID))) + if ((!a_LineOfSight && cBlockInfo::IsSolid(BlockID)) || (a_LineOfSight && (BlockID != E_BLOCK_AIR) && !IsBlockWater(BlockID))) { BlockHitPosition = pos; int Normal = GetHitNormal(a_Start, End, pos ); |