From fedd0dd95fb290279ea50b56cd4e8b4e95bcbbd2 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Mon, 19 Mar 2012 09:40:56 +0000 Subject: Made some logging output debug-only git-svn-id: http://mc-server.googlecode.com/svn/trunk@421 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cWindow.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'source') 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(); -- cgit v1.2.3