summaryrefslogtreecommitdiffstats
path: root/src/Entities/Entity.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-04-27 00:50:24 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-04-27 00:50:24 +0200
commitb4b3b5ce6480419bb18bafa6650dd09ea5544441 (patch)
tree78a726328b527dcfd3ba2f619465547e214cb8c5 /src/Entities/Entity.cpp
parentImplemented suggestions (diff)
downloadcuberite-b4b3b5ce6480419bb18bafa6650dd09ea5544441.tar
cuberite-b4b3b5ce6480419bb18bafa6650dd09ea5544441.tar.gz
cuberite-b4b3b5ce6480419bb18bafa6650dd09ea5544441.tar.bz2
cuberite-b4b3b5ce6480419bb18bafa6650dd09ea5544441.tar.lz
cuberite-b4b3b5ce6480419bb18bafa6650dd09ea5544441.tar.xz
cuberite-b4b3b5ce6480419bb18bafa6650dd09ea5544441.tar.zst
cuberite-b4b3b5ce6480419bb18bafa6650dd09ea5544441.zip
Diffstat (limited to 'src/Entities/Entity.cpp')
-rw-r--r--src/Entities/Entity.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Entities/Entity.cpp b/src/Entities/Entity.cpp
index f535faac7..921457b2d 100644
--- a/src/Entities/Entity.cpp
+++ b/src/Entities/Entity.cpp
@@ -1145,7 +1145,7 @@ void cEntity::BroadcastMovementUpdate(const cClientHandle * a_Exclude)
int DiffY = (int)(floor(GetPosY() * 32.0) - floor(m_LastPos.y * 32.0));
int DiffZ = (int)(floor(GetPosZ() * 32.0) - floor(m_LastPos.z * 32.0));
- if ((abs(DiffX) >= 4) || (abs(DiffY) >= 4) || (abs(DiffZ) >= 4))
+ if ((abs(DiffX) != 0) || (abs(DiffY) != 0) || (abs(DiffZ) != 0)) // Have we moved?
{
if ((abs(DiffX) <= 127) && (abs(DiffY) <= 127) && (abs(DiffZ) <= 127)) // Limitations of a Byte
{