summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLane Kolbly <lane@rscheme.org>2017-07-06 19:59:48 +0200
committerLukas Pioch <lukas@zgow.de>2017-07-12 12:12:56 +0200
commit647d9082b87f02e463f933924623b430699c9b5b (patch)
tree1a4ee9d4f9af81e6ad2fdfe697b3ec153c92523b /src
parentRemove double delete of PrepareChunk lua callback (#3844) (diff)
downloadcuberite-647d9082b87f02e463f933924623b430699c9b5b.tar
cuberite-647d9082b87f02e463f933924623b430699c9b5b.tar.gz
cuberite-647d9082b87f02e463f933924623b430699c9b5b.tar.bz2
cuberite-647d9082b87f02e463f933924623b430699c9b5b.tar.lz
cuberite-647d9082b87f02e463f933924623b430699c9b5b.tar.xz
cuberite-647d9082b87f02e463f933924623b430699c9b5b.tar.zst
cuberite-647d9082b87f02e463f933924623b430699c9b5b.zip
Diffstat (limited to 'src')
-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 90613faf3..f2836de9b 100644
--- a/src/Entities/Entity.cpp
+++ b/src/Entities/Entity.cpp
@@ -1920,7 +1920,7 @@ void cEntity::BroadcastMovementUpdate(const cClientHandle * a_Exclude)
}
// Only send movement if speed is not 0 and 'no speed' was sent to client
- if (!m_bHasSentNoSpeed)
+ if (!m_bHasSentNoSpeed || IsPlayer())
{
// TODO: Pickups move disgracefully if relative move packets are sent as opposed to just velocity. Have a system to send relmove only when SetPosXXX() is called with a large difference in position
int DiffX = FloorC(GetPosX() * 32.0) - FloorC(m_LastSentPosition.x * 32.0);