Enable shift-click crafting (#13729)

This commit is contained in:
gamefreq0 2023-08-24 01:00:54 -04:00 committed by GitHub
parent 587e2b2526
commit d0ee63c766
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -4312,10 +4312,7 @@ bool GUIFormSpecMenu::OnEvent(const SEvent& event)
if (button == BET_MIDDLE)
craft_amount = 10;
else if (event.MouseInput.Shift && button == BET_LEFT)
// TODO: We should craft everything with shift-left-click,
// but the slow crafting code limits us, so we only craft one
craft_amount = 1;
//craft_amount = list_s->getItem(s.i).getStackMax(m_client->idef());
craft_amount = list_s->getItem(s.i).getStackMax(m_client->idef());
else
craft_amount = 1;