From 6f70fb2845e095cbfb2e14730a257048a44b8047 Mon Sep 17 00:00:00 2001 From: "cedeel@gmail.com" Date: Thu, 14 Jun 2012 20:43:23 +0000 Subject: Fixed snow again, this time for real. I didn't realize the client would also try to replace the snow from the sides. git-svn-id: http://mc-server.googlecode.com/svn/trunk@612 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cClientHandle.cpp | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'source/cClientHandle.cpp') diff --git a/source/cClientHandle.cpp b/source/cClientHandle.cpp index 92388301c..79fd6b34b 100644 --- a/source/cClientHandle.cpp +++ b/source/cClientHandle.cpp @@ -1051,9 +1051,24 @@ void cClientHandle::HandleBlockPlace(cPacket_BlockPlace * a_Packet) if (ClickedBlock == E_BLOCK_SNOW) { - if (a_Packet->m_Direction == 1) + switch (a_Packet->m_Direction) { - a_Packet->m_PosY--; + case 1: + a_Packet->m_PosY--; + break; + case 2: + a_Packet->m_PosZ++; + break; + case 3: + a_Packet->m_PosZ--; + break; + case 4: + a_Packet->m_PosX++; + break; + case 5: + a_Packet->m_PosX--; + break; + default: break; } bIgnoreCollision = true; } -- cgit v1.2.3