Skip to content

Commit 60113bd

Browse files
committedDec 3, 2013
Dont move item back when not clicking on a slot
1 parent 1309e52 commit 60113bd

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed
 

‎src/guiFormSpecMenu.cpp

+1-6
Original file line numberDiff line numberDiff line change
@@ -2462,12 +2462,7 @@ bool GUIFormSpecMenu::OnEvent(const SEvent& event)
24622462
move_amount = 0;
24632463
}
24642464
}
2465-
else if(getAbsoluteClippingRect().isPointInside(m_pointer))
2466-
{
2467-
// Clicked somewhere else: deselect
2468-
m_selected_amount = 0;
2469-
}
2470-
else
2465+
else if (!getAbsoluteClippingRect().isPointInside(m_pointer))
24712466
{
24722467
// Clicked outside of the window: drop
24732468
if(button == 1) // right

0 commit comments

Comments
 (0)
Please sign in to comment.