From fae4c6920d74277cd15821bb7abe41e4351fa119 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 13 Dec 2014 20:13:29 +0300 Subject: Remove "retrieve 10" popup menu handler. --- src/gui/popups/popupmenu.cpp | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to 'src/gui/popups/popupmenu.cpp') diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp index 4345dfc42..92645cd40 100644 --- a/src/gui/popups/popupmenu.cpp +++ b/src/gui/popups/popupmenu.cpp @@ -982,16 +982,7 @@ void PopupMenu::handleLink(const std::string &link, if (actorManager) being = actorManager->findBeing(mBeingId); - if (link == "retrieve 10" && mItem) - { - int cnt = 10; - if (cnt > mItem->getQuantity()) - cnt = mItem->getQuantity(); - inventoryHandler->moveItem2(Inventory::STORAGE, - mItem->getInvIndex(), cnt, - Inventory::INVENTORY); - } - else if (link == "retrieve half" && mItem) + if (link == "retrieve half" && mItem) { inventoryHandler->moveItem2(Inventory::STORAGE, mItem->getInvIndex(), mItem->getQuantity() / 2, @@ -1799,7 +1790,8 @@ void PopupMenu::showPopup(Window *const parent, const int x, const int y, { // TRANSLATORS: popup menu item // TRANSLATORS: get 10 item amount from storage - mBrowserBox->addRow("retrieve 10", _("Retrieve 10")); + mBrowserBox->addRow("/storagetoinv 'INVINDEX' 10", + _("Retrieve 10")); } // TRANSLATORS: popup menu item // TRANSLATORS: get half item amount from storage -- cgit v1.2.3-60-g2f50