From 37590c4bd8f293ca11dd5ad351f241b7636b67cb Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Fri, 5 Jul 2013 21:11:06 +0000 Subject: Unmounting vehicles implemented in the 1.6.1 way git-svn-id: http://mc-server.googlecode.com/svn/trunk@1650 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/ClientHandle.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'source/ClientHandle.cpp') diff --git a/source/ClientHandle.cpp b/source/ClientHandle.cpp index 138209a73..4d4f40745 100644 --- a/source/ClientHandle.cpp +++ b/source/ClientHandle.cpp @@ -1200,6 +1200,19 @@ void cClientHandle::HandleEntityAction(int a_EntityID, char a_ActionID) +void cClientHandle::HandleUnmount(void) +{ + if (m_Player == NULL) + { + return; + } + m_Player->Detach(); +} + + + + + void cClientHandle::SendData(const char * a_Data, int a_Size) { { -- cgit v1.2.3