From 8557ed83593444b3bfbf9dabb1a6ebbaa10299d3 Mon Sep 17 00:00:00 2001 From: "keyboard.osh@gmail.com" Date: Mon, 18 Mar 2013 02:51:55 +0000 Subject: Added support for the packet #28 (0x1C): ENTITY_VELOCITY git-svn-id: http://mc-server.googlecode.com/svn/trunk@1283 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/ClientHandle.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'source/ClientHandle.cpp') diff --git a/source/ClientHandle.cpp b/source/ClientHandle.cpp index fde80a083..2cb508b81 100644 --- a/source/ClientHandle.cpp +++ b/source/ClientHandle.cpp @@ -1453,6 +1453,17 @@ void cClientHandle::SendEntLook(const cEntity & a_Entity) +void cClientHandle::SendEntVelocity(const cEntity & a_Entity) +{ + ASSERT(a_Entity.GetUniqueID() != m_Player->GetUniqueID()); // Must not send for self + + m_Protocol->SendEntVelocity(a_Entity); +} + + + + + void cClientHandle::SendEntHeadLook(const cEntity & a_Entity) { ASSERT(a_Entity.GetUniqueID() != m_Player->GetUniqueID()); // Must not send for self -- cgit v1.2.3