diff options
author | madmaxoft <github@xoft.cz> | 2013-11-08 21:32:14 +0100 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2013-11-08 21:32:14 +0100 |
commit | 07fa8313b184e2a9d7666cf6f7b10d5def8dc928 (patch) | |
tree | 386d2e6ef3a5251e4ab2972b6620e5092a0ae546 /source/Protocol/Protocol125.cpp | |
parent | Fixed code style. (diff) | |
download | cuberite-07fa8313b184e2a9d7666cf6f7b10d5def8dc928.tar cuberite-07fa8313b184e2a9d7666cf6f7b10d5def8dc928.tar.gz cuberite-07fa8313b184e2a9d7666cf6f7b10d5def8dc928.tar.bz2 cuberite-07fa8313b184e2a9d7666cf6f7b10d5def8dc928.tar.lz cuberite-07fa8313b184e2a9d7666cf6f7b10d5def8dc928.tar.xz cuberite-07fa8313b184e2a9d7666cf6f7b10d5def8dc928.tar.zst cuberite-07fa8313b184e2a9d7666cf6f7b10d5def8dc928.zip |
Diffstat (limited to '')
-rw-r--r-- | source/Protocol/Protocol125.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source/Protocol/Protocol125.cpp b/source/Protocol/Protocol125.cpp index e53ab948c..9f2770815 100644 --- a/source/Protocol/Protocol125.cpp +++ b/source/Protocol/Protocol125.cpp @@ -956,19 +956,19 @@ void cProtocol125::SendWindowClose(const cWindow & a_Window) -void cProtocol125::SendWindowOpen(char a_WindowID, char a_WindowType, const AString & a_WindowTitle, char a_NumSlots) +void cProtocol125::SendWindowOpen(const cWindow & a_Window) { - if (a_WindowType < 0) + if (a_Window.GetWindowType() < 0) { // Do not send for inventory windows return; } cCSLock Lock(m_CSPacket); WriteByte (PACKET_WINDOW_OPEN); - WriteByte (a_WindowID); - WriteByte (a_WindowType); - WriteString(a_WindowTitle); - WriteByte (a_NumSlots); + WriteByte (a_Window.GetWindowID()); + WriteByte (a_Window.GetWindowType()); + WriteString(a_Window.GetWindowTitle()); + WriteByte (a_Window.GetNumNonInventorySlots()); Flush(); } |