From: Perttu Ahola Date: Sun, 16 Oct 2011 22:03:45 +0000 (+0300) Subject: Improve inventory debug output X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=5f39885975dcd73a9589ce9be0aeb908eebc3450;p=zefram%2Fminetest%2Fminetest_engine.git Improve inventory debug output --- diff --git a/src/guiInventoryMenu.cpp b/src/guiInventoryMenu.cpp index 165d4d86..7d49acaa 100644 --- a/src/guiInventoryMenu.cpp +++ b/src/guiInventoryMenu.cpp @@ -27,6 +27,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #include #include #include +#include "log.h" void drawInventoryItem(video::IVideoDriver *driver, gui::IGUIFont *font, @@ -326,11 +327,11 @@ bool GUIInventoryMenu::OnEvent(const SEvent& event) if(amount >= 0) { v2s32 p(event.MouseInput.X, event.MouseInput.Y); - //dstream<<"Mouse down at p=("<getList(s.listname); if(list_from == NULL) - dstream<<"from list doesn't exist"<getItem(m_selected_item->i) != NULL) { - dstream<<"Handing IACTION_MOVE to manager"<count = amount; a->from_inv = m_selected_item->inventoryname; @@ -408,7 +409,7 @@ bool GUIInventoryMenu::OnEvent(const SEvent& event) { if(!canTakeFocus(event.GUIEvent.Element)) { - dstream<<"GUIInventoryMenu: Not allowing focus change." + infostream<<"GUIInventoryMenu: Not allowing focus change." <getList(from_list); InventoryList *list_to = inv_to->getList(to_list); - /*dstream<<"list_from="<getItem(from_i)="<getItem(from_i) - <getItem(to_i)="<getItem(to_i) - <getItem(from_i) == NULL) { - dstream<<__FUNCTION_NAME<<": Operation not allowed " - <<"(the source item doesn't exist)" - <