From 8fa8107e457388314c23f6dee210dfa2664de3e9 Mon Sep 17 00:00:00 2001 From: madmaxoft Date: Mon, 11 Nov 2013 21:33:14 +0100 Subject: Fixed dblclicking in crafting slot area. Fixes #229. --- source/UI/SlotArea.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'source/UI/SlotArea.cpp') diff --git a/source/UI/SlotArea.cpp b/source/UI/SlotArea.cpp index ae493762a..7fd7cd996 100644 --- a/source/UI/SlotArea.cpp +++ b/source/UI/SlotArea.cpp @@ -404,6 +404,20 @@ void cSlotAreaCrafting::Clicked(cPlayer & a_Player, int a_SlotNum, eClickAction +void cSlotAreaCrafting::DblClicked(cPlayer & a_Player, int a_SlotNum) +{ + if (a_SlotNum == 0) + { + // Dbl-clicking the crafting result slot shouldn't collect items to hand + return; + } + super::DblClicked(a_Player, a_SlotNum); +} + + + + + void cSlotAreaCrafting::OnPlayerRemoved(cPlayer & a_Player) { // Toss all items on the crafting grid: -- cgit v1.2.3