Another handful of packets rewritten.
Also changed cItem::m_ItemID into m_ItemType of type short. Easier handling. m_ItemID kept for compatibility reasons (Lua-interface etc.) git-svn-id: http://mc-server.googlecode.com/svn/trunk@756 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
int cPacket_WindowClose::Parse(cByteBuffer & a_Buffer)
|
||||
{
|
||||
int TotalBytes = 0;
|
||||
HANDLE_PACKET_READ(ReadChar, m_Close, TotalBytes);
|
||||
HANDLE_PACKET_READ(ReadChar, m_WindowID, TotalBytes);
|
||||
return TotalBytes;
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ int cPacket_WindowClose::Parse(cByteBuffer & a_Buffer)
|
||||
void cPacket_WindowClose::Serialize(AString & a_Data) const
|
||||
{
|
||||
AppendByte(a_Data, m_PacketID);
|
||||
AppendByte(a_Data, m_Close);
|
||||
AppendByte(a_Data, m_WindowID);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user