From 647d9082b87f02e463f933924623b430699c9b5b Mon Sep 17 00:00:00 2001 From: Lane Kolbly Date: Thu, 6 Jul 2017 12:59:48 -0500 Subject: If entity is a player, send relmove packets. --- src/Entities/Entity.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3