projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1309e52
)
Dont move item back when not clicking on a slot
1034/head
author
PilzAdam
<pilzadam@minetest.net>
Tue, 3 Dec 2013 17:05:36 +0000
(18:05 +0100)
committer
PilzAdam
<pilzadam@minetest.net>
Tue, 3 Dec 2013 17:05:36 +0000
(18:05 +0100)
src/guiFormSpecMenu.cpp
patch
|
blob
|
history
diff --git
a/src/guiFormSpecMenu.cpp
b/src/guiFormSpecMenu.cpp
index 8ffddcbc60c705145693d3bf5a2037a122a822ab..920a7f1f25d0de1279cf2140b2dbbe3192afe9d8 100644
(file)
--- a/
src/guiFormSpecMenu.cpp
+++ b/
src/guiFormSpecMenu.cpp
@@
-2462,12
+2462,7
@@
bool GUIFormSpecMenu::OnEvent(const SEvent& event)
move_amount = 0;
}
}
- else if(getAbsoluteClippingRect().isPointInside(m_pointer))
- {
- // Clicked somewhere else: deselect
- m_selected_amount = 0;
- }
- else
+ else if (!getAbsoluteClippingRect().isPointInside(m_pointer))
{
// Clicked outside of the window: drop
if(button == 1) // right