aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPilzAdam <pilzadam@minetest.net>2013-12-03 18:05:36 +0100
committerPilzAdam <pilzadam@minetest.net>2013-12-03 18:05:36 +0100
commit60113bde74784f4a0125ffa005e9404fbd5cb5b1 (patch)
treeeab7a24f4186bb2879473be9414d63bda6aaccc9 /src
parent1309e52198e04a50d322914fb4d5667e6760b3af (diff)
downloadminetest-60113bde74784f4a0125ffa005e9404fbd5cb5b1.tar.gz
minetest-60113bde74784f4a0125ffa005e9404fbd5cb5b1.tar.bz2
minetest-60113bde74784f4a0125ffa005e9404fbd5cb5b1.zip
Dont move item back when not clicking on a slot
Diffstat (limited to 'src')
-rw-r--r--src/guiFormSpecMenu.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/guiFormSpecMenu.cpp b/src/guiFormSpecMenu.cpp
index 8ffddcbc6..920a7f1f2 100644
--- 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