From: PilzAdam Date: Tue, 3 Dec 2013 17:05:36 +0000 (+0100) Subject: Dont move item back when not clicking on a slot X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=60113bde74784f4a0125ffa005e9404fbd5cb5b1;p=zefram%2Fminetest%2Fminetest_engine.git Dont move item back when not clicking on a slot --- diff --git a/src/guiFormSpecMenu.cpp b/src/guiFormSpecMenu.cpp index 8ffddcbc..920a7f1f 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