diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-06-30 20:21:21 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-06-30 20:21:21 +0200 |
commit | 85fae0e521d3a2ea4f083ee2bc54ac7fbb357768 (patch) | |
tree | 0ca17a95845e4a836ac231360b554a8854a41083 /src/Entities | |
parent | Suggestions (diff) | |
download | cuberite-85fae0e521d3a2ea4f083ee2bc54ac7fbb357768.tar cuberite-85fae0e521d3a2ea4f083ee2bc54ac7fbb357768.tar.gz cuberite-85fae0e521d3a2ea4f083ee2bc54ac7fbb357768.tar.bz2 cuberite-85fae0e521d3a2ea4f083ee2bc54ac7fbb357768.tar.lz cuberite-85fae0e521d3a2ea4f083ee2bc54ac7fbb357768.tar.xz cuberite-85fae0e521d3a2ea4f083ee2bc54ac7fbb357768.tar.zst cuberite-85fae0e521d3a2ea4f083ee2bc54ac7fbb357768.zip |
Diffstat (limited to 'src/Entities')
-rw-r--r-- | src/Entities/ArrowEntity.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Entities/ArrowEntity.cpp b/src/Entities/ArrowEntity.cpp index c76c710ef..2d6683f0a 100644 --- a/src/Entities/ArrowEntity.cpp +++ b/src/Entities/ArrowEntity.cpp @@ -74,8 +74,9 @@ void cArrowEntity::OnHitSolidBlock(const Vector3d & a_HitPos, eBlockFace a_HitFa Hit += SinkMovement; // Make arrow sink into block a little super::OnHitSolidBlock(Hit, a_HitFace); - int X = (int)floor(Hit.x), Y = (int)floor(Hit.y), Z = (int)floor(Hit.z); - + Hit.Floor(); + + int X = Hit.x, Y = Hit.y, Z = Hit.z; m_HitBlockPos = Vector3i(X, Y, Z); // Broadcast arrow hit sound |