From: Mark Holmquist Date: Thu, 1 Dec 2011 23:16:41 +0000 (-0800) Subject: + middle-click now empties the inventory slot properly X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=a465fd5b99202c22c0b9e0ce5c59345f50501279;p=zefram%2Fminetest%2Fminetest_engine.git + middle-click now empties the inventory slot properly --- diff --git a/src/guiInventoryMenu.cpp b/src/guiInventoryMenu.cpp index 45733bcd..d9a98b5b 100644 --- a/src/guiInventoryMenu.cpp +++ b/src/guiInventoryMenu.cpp @@ -386,7 +386,7 @@ bool GUIInventoryMenu::OnEvent(const SEvent& event) //ispec.actions->push_back(a); m_invmgr->inventoryAction(a); - if(list_from->getItem(m_selected_item->i)->getCount()==1) + if(list_from->getItem(m_selected_item->i)->getCount()<=amount) source_empties = true; } // Remove selection if target was left-clicked or source