From 88270be66928f3b73b73fc1f3b26a74358089223 Mon Sep 17 00:00:00 2001 From: "admin@omencraft.com" Date: Wed, 26 Oct 2011 20:52:19 +0000 Subject: Made several recomended changes. Gamemode is now world based. Need to add it to player. git-svn-id: http://mc-server.googlecode.com/svn/trunk@18 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/packets/cPacket_CreateInventoryAction.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source/packets/cPacket_CreateInventoryAction.cpp') diff --git a/source/packets/cPacket_CreateInventoryAction.cpp b/source/packets/cPacket_CreateInventoryAction.cpp index 19996769f..40aad22e8 100644 --- a/source/packets/cPacket_CreateInventoryAction.cpp +++ b/source/packets/cPacket_CreateInventoryAction.cpp @@ -6,7 +6,7 @@ cPacket_CreateInventoryAction::cPacket_CreateInventoryAction( const cPacket_Crea m_Slot = a_Copy.m_Slot; m_ItemID = a_Copy.m_ItemID; m_Quantity = 0; - m_Short = 0; + m_Damage = 0; } bool cPacket_CreateInventoryAction::Parse(cSocket & a_Socket) @@ -15,7 +15,7 @@ bool cPacket_CreateInventoryAction::Parse(cSocket & a_Socket) if( !ReadShort ( m_Slot ) ) return false; if( !ReadShort ( m_ItemID ) ) return false; if( !ReadShort ( m_Quantity ) ) return false; - if( !ReadShort ( m_Short ) ) return false; + if( !ReadShort ( m_Damage ) ) return false; return true; } @@ -34,7 +34,7 @@ bool cPacket_CreateInventoryAction::Send(cSocket & a_Socket) AppendShort ( m_Slot, Message, i ); AppendShort ( m_ItemID, Message, i ); AppendShort ( m_Quantity, Message, i ); - AppendShort ( m_Short, Message, i ); + AppendShort ( m_Damage, Message, i ); bool RetVal = !cSocket::IsSocketError( SendData( a_Socket, Message, TotalSize, 0 ) ); delete [] Message; -- cgit v1.2.3