From f5fe723b2a704da475b24a594fd59f448cf133a3 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Thu, 30 Aug 2012 09:56:59 +0000 Subject: Added a basic protocol recognizer and the base for 1.3.2 protocol. Also fixed a few type-related warnings. git-svn-id: http://mc-server.googlecode.com/svn/trunk@805 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/Protocol125.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source/Protocol125.cpp') diff --git a/source/Protocol125.cpp b/source/Protocol125.cpp index a50551c35..ce86e70c4 100644 --- a/source/Protocol125.cpp +++ b/source/Protocol125.cpp @@ -133,7 +133,7 @@ void cProtocol125::SendBlockChange(int a_BlockX, int a_BlockY, int a_BlockZ, BLO cCSLock Lock(m_CSPacket); WriteByte(PACKET_BLOCK_CHANGE); WriteInt (a_BlockX); - WriteByte(a_BlockY); + WriteByte((unsigned char)a_BlockY); WriteInt (a_BlockZ); WriteByte(a_BlockType); WriteByte(a_BlockMeta); @@ -354,7 +354,7 @@ void cProtocol125::SendInventoryProgress(char a_WindowID, short a_ProgressBar, s -void cProtocol125::SendInventorySlot(int a_WindowID, short a_SlotNum, const cItem & a_Item) +void cProtocol125::SendInventorySlot(char a_WindowID, short a_SlotNum, const cItem & a_Item) { cCSLock Lock(m_CSPacket); WriteByte (PACKET_INVENTORY_SLOT); @@ -716,7 +716,7 @@ void cProtocol125::SendWholeInventory(const cWindow & a_Window) { cCSLock Lock(m_CSPacket); SendWholeInventory( - a_Window.GetWindowID(), + (char)a_Window.GetWindowID(), a_Window.GetNumSlots(), a_Window.GetSlots() ); -- cgit v1.2.3