@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user