aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Holmquist <marktraceur@gmail.com>2011-12-01 15:16:41 -0800
committerPerttu Ahola <celeron55@gmail.com>2011-12-02 11:31:10 +0200
commita465fd5b99202c22c0b9e0ce5c59345f50501279 (patch)
tree67a007144ed4aa99efd401fc88fd6880758918f4
parent9af0142a36f345c16db5ccabf75349c1b13f59e2 (diff)
downloadminetest-a465fd5b99202c22c0b9e0ce5c59345f50501279.tar.gz
minetest-a465fd5b99202c22c0b9e0ce5c59345f50501279.tar.bz2
minetest-a465fd5b99202c22c0b9e0ce5c59345f50501279.zip
+ middle-click now empties the inventory slot properly
-rw-r--r--src/guiInventoryMenu.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/guiInventoryMenu.cpp b/src/guiInventoryMenu.cpp
index 45733bcd9..d9a98b5b0 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