summaryrefslogtreecommitdiffstats
path: root/source/packets
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-08-11 21:54:57 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-08-11 21:54:57 +0200
commit18b04ab93f31e4701351dc35f847f2763d75c5e0 (patch)
tree577ee0332b3ae8778443dc6af4ee0f24c7ca1011 /source/packets
parentUpdated Bindings to match the new armor categories and torch metas (diff)
downloadcuberite-18b04ab93f31e4701351dc35f847f2763d75c5e0.tar
cuberite-18b04ab93f31e4701351dc35f847f2763d75c5e0.tar.gz
cuberite-18b04ab93f31e4701351dc35f847f2763d75c5e0.tar.bz2
cuberite-18b04ab93f31e4701351dc35f847f2763d75c5e0.tar.lz
cuberite-18b04ab93f31e4701351dc35f847f2763d75c5e0.tar.xz
cuberite-18b04ab93f31e4701351dc35f847f2763d75c5e0.tar.zst
cuberite-18b04ab93f31e4701351dc35f847f2763d75c5e0.zip
Diffstat (limited to '')
-rw-r--r--source/packets/cPacket_WindowClick.cpp12
-rw-r--r--source/packets/cPacket_WindowClick.h8
2 files changed, 9 insertions, 11 deletions
diff --git a/source/packets/cPacket_WindowClick.cpp b/source/packets/cPacket_WindowClick.cpp
index ac3191c28..05be3c53c 100644
--- a/source/packets/cPacket_WindowClick.cpp
+++ b/source/packets/cPacket_WindowClick.cpp
@@ -12,13 +12,11 @@
int cPacket_WindowClick::Parse(const char * a_Data, int a_Size)
{
int TotalBytes = 0;
- HANDLE_PACKET_READ(ReadByte, m_WindowID, TotalBytes);
- HANDLE_PACKET_READ(ReadShort, m_SlotNum, TotalBytes);
- HANDLE_PACKET_READ(ReadByte, m_RightMouse, TotalBytes);
- HANDLE_PACKET_READ(ReadShort, m_NumClicks, TotalBytes);
- HANDLE_PACKET_READ(ReadBool, m_Bool, TotalBytes);
-
- // LOG("WindowClick: WindowID: %i; FromSlot: %i; Right/Le: %i; NumClick: %i", m_Type, m_SlotNum, m_RightMouse, m_NumClicks );
+ HANDLE_PACKET_READ(ReadByte, m_WindowID, TotalBytes);
+ HANDLE_PACKET_READ(ReadShort, m_SlotNum, TotalBytes);
+ HANDLE_PACKET_READ(ReadByte, m_RightMouse, TotalBytes);
+ HANDLE_PACKET_READ(ReadShort, m_NumClicks, TotalBytes);
+ HANDLE_PACKET_READ(ReadBool, m_IsShiftPressed, TotalBytes);
cPacket_ItemData Item;
diff --git a/source/packets/cPacket_WindowClick.h b/source/packets/cPacket_WindowClick.h
index e9abd80df..93dc5dc2e 100644
--- a/source/packets/cPacket_WindowClick.h
+++ b/source/packets/cPacket_WindowClick.h
@@ -15,7 +15,7 @@ public:
, m_SlotNum( 0 )
, m_RightMouse( 0 )
, m_NumClicks( 0 )
- , m_Bool( false )
+ , m_IsShiftPressed( false )
, m_ItemID( 0 )
, m_ItemCount( 0 )
, m_ItemUses( 0 )
@@ -33,9 +33,9 @@ public:
// 9-35 = inventory
// 36-44 = Hot bar
- char m_RightMouse; // 0 = Left 1 = Right mb
- short m_NumClicks; // Num clicks
- bool m_Bool; // Shift pressed when clicked?
+ char m_RightMouse; // 0 = Left 1 = Right mb
+ short m_NumClicks; // Num clicks
+ bool m_IsShiftPressed; // Shift pressed when clicked?
// Below = item
short m_ItemID; // if this is -1 the next stuff dont exist