summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-03-19 10:40:56 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-03-19 10:40:56 +0100
commitfedd0dd95fb290279ea50b56cd4e8b4e95bcbbd2 (patch)
tree8b522d2f26905cbe46eb706c27b7df7573cd1331 /source
parentBasic cWindow thread-safety (diff)
downloadcuberite-fedd0dd95fb290279ea50b56cd4e8b4e95bcbbd2.tar
cuberite-fedd0dd95fb290279ea50b56cd4e8b4e95bcbbd2.tar.gz
cuberite-fedd0dd95fb290279ea50b56cd4e8b4e95bcbbd2.tar.bz2
cuberite-fedd0dd95fb290279ea50b56cd4e8b4e95bcbbd2.tar.lz
cuberite-fedd0dd95fb290279ea50b56cd4e8b4e95bcbbd2.tar.xz
cuberite-fedd0dd95fb290279ea50b56cd4e8b4e95bcbbd2.tar.zst
cuberite-fedd0dd95fb290279ea50b56cd4e8b4e95bcbbd2.zip
Diffstat (limited to 'source')
-rw-r--r--source/cWindow.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/source/cWindow.cpp b/source/cWindow.cpp
index 548d80975..62b319ca6 100644
--- a/source/cWindow.cpp
+++ b/source/cWindow.cpp
@@ -85,7 +85,7 @@ void cWindow::Clicked( cPacket_WindowClick* a_ClickPacket, cPlayer & a_Player )
{
if( a_ClickPacket->m_WindowID != m_WindowID )
{
- LOG("WRONG WINDOW ID!");
+ LOG("WRONG WINDOW ID! (exp %d, got %d)", m_WindowID, a_ClickPacket->m_WindowID);
return;
}
@@ -114,9 +114,9 @@ void cWindow::Clicked( cPacket_WindowClick* a_ClickPacket, cPlayer & a_Player )
{
if( !((a_ClickPacket->m_ItemID == -1 || a_ClickPacket->m_ItemID == 0) && (Item->m_ItemID == -1 || Item->m_ItemID == 0 )) )
{
- LOG("My ID: %i Their ID: %i", Item->m_ItemID, a_ClickPacket->m_ItemID );
- LOG("My Count: %i Their Count: %i", Item->m_ItemCount, a_ClickPacket->m_ItemCount );
- LOG("My Uses: %i Their Uses: %i", Item->m_ItemHealth, a_ClickPacket->m_ItemUses );
+ LOGD("My ID: %i Their ID: %i", Item->m_ItemID, a_ClickPacket->m_ItemID );
+ LOGD("My Count: %i Their Count: %i", Item->m_ItemCount, a_ClickPacket->m_ItemCount );
+ LOGD("My Uses: %i Their Uses: %i", Item->m_ItemHealth, a_ClickPacket->m_ItemUses );
bAsync = true;
}
}
@@ -199,7 +199,7 @@ void cWindow::Clicked( cPacket_WindowClick* a_ClickPacket, cPlayer & a_Player )
Window->Clicked( a_ClickPacket, a_Player );
}
}
- if( m_DraggingItem ) LOG("Dragging: %i", m_DraggingItem->m_ItemCount );
+ if( m_DraggingItem ) LOGD("Dragging: %i", m_DraggingItem->m_ItemCount );
}
@@ -279,7 +279,7 @@ void cWindow::OwnerDestroyed()
void cWindow::Destroy()
{
- LOG("Destroying window %p (type %d)", this, m_WindowType);
+ LOGD("Destroying window %p (type %d)", this, m_WindowType);
if (m_Owner != NULL)
{
m_Owner->CloseWindow();