diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-07-04 13:50:40 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-07-04 13:50:40 +0200 |
commit | f6350662414044896e7971dcc792c83d5eaddbce (patch) | |
tree | ee4c851a04dffa00a1cc45b89addcba0cfe4002e /src/Entities/ArrowEntity.cpp | |
parent | Suggestions (diff) | |
download | cuberite-f6350662414044896e7971dcc792c83d5eaddbce.tar cuberite-f6350662414044896e7971dcc792c83d5eaddbce.tar.gz cuberite-f6350662414044896e7971dcc792c83d5eaddbce.tar.bz2 cuberite-f6350662414044896e7971dcc792c83d5eaddbce.tar.lz cuberite-f6350662414044896e7971dcc792c83d5eaddbce.tar.xz cuberite-f6350662414044896e7971dcc792c83d5eaddbce.tar.zst cuberite-f6350662414044896e7971dcc792c83d5eaddbce.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Entities/ArrowEntity.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Entities/ArrowEntity.cpp b/src/Entities/ArrowEntity.cpp index c039b0b3c..1d539679c 100644 --- a/src/Entities/ArrowEntity.cpp +++ b/src/Entities/ArrowEntity.cpp @@ -68,7 +68,7 @@ bool cArrowEntity::CanPickup(const cPlayer & a_Player) const void cArrowEntity::OnHitSolidBlock(const Vector3d & a_HitPos, eBlockFace a_HitFace) { - if (GetSpeed().SqrLength() == 0) + if (GetSpeed().EqualsEps(Vector3d(0, 0, 0), 0.0000001)) { SetSpeed(GetLookVector().NormalizeCopy() * 0.1); // Ensure that no division by zero happens later } |