projects
/
zefram
/
minetest
/
minetest_engine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9af0142
)
+ middle-click now empties the inventory slot properly
author
Mark Holmquist
<marktraceur@gmail.com>
Thu, 1 Dec 2011 23:16:41 +0000
(15:16 -0800)
committer
Perttu Ahola
<celeron55@gmail.com>
Fri, 2 Dec 2011 09:31:10 +0000
(11:31 +0200)
src/guiInventoryMenu.cpp
patch
|
blob
|
history
diff --git
a/src/guiInventoryMenu.cpp
b/src/guiInventoryMenu.cpp
index 45733bcd9e9e2c3506716a329d4ca66c342ccdb8..d9a98b5b0a1e939744d147c9d61ed30f96b9a497 100644
(file)
--- 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