summaryrefslogtreecommitdiffstats
path: root/src/Entities/Entity.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-05-06 00:45:35 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-05-06 00:45:35 +0200
commit1df7dbe7c91953c2413908b846649e884b7ac53c (patch)
treee385aaf8d1a0c3bf7380aaf6847e66ecb1ba4873 /src/Entities/Entity.cpp
parentA bit of reformatting. (diff)
downloadcuberite-1df7dbe7c91953c2413908b846649e884b7ac53c.tar
cuberite-1df7dbe7c91953c2413908b846649e884b7ac53c.tar.gz
cuberite-1df7dbe7c91953c2413908b846649e884b7ac53c.tar.bz2
cuberite-1df7dbe7c91953c2413908b846649e884b7ac53c.tar.lz
cuberite-1df7dbe7c91953c2413908b846649e884b7ac53c.tar.xz
cuberite-1df7dbe7c91953c2413908b846649e884b7ac53c.tar.zst
cuberite-1df7dbe7c91953c2413908b846649e884b7ac53c.zip
Diffstat (limited to '')
-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 644afe69e..4cf10a219 100644
--- a/src/Entities/Entity.cpp
+++ b/src/Entities/Entity.cpp
@@ -1211,7 +1211,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) != 0) || (abs(DiffY) != 0) || (abs(DiffZ) != 0)) // Have we moved?
+ if ((DiffX != 0) || (DiffY != 0) || (DiffZ != 0)) // Have we moved?
{
if ((abs(DiffX) <= 127) && (abs(DiffY) <= 127) && (abs(DiffZ) <= 127)) // Limitations of a Byte
{