From 9b4893583faada67faa7df938a35367328939a8f Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 13 Dec 2014 14:54:04 +0300 Subject: Remove "store 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 f1fbeb753..dc63de333 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 == "store 10" && mItem) - { - int cnt = 10; - if (cnt > mItem->getQuantity()) - cnt = mItem->getQuantity(); - inventoryHandler->moveItem2(Inventory::INVENTORY, - mItem->getInvIndex(), cnt, - Inventory::STORAGE); - } - else if (link == "store half" && mItem) + if (link == "store half" && mItem) { inventoryHandler->moveItem2(Inventory::INVENTORY, mItem->getInvIndex(), mItem->getQuantity() / 2, @@ -1830,7 +1821,8 @@ void PopupMenu::showPopup(Window *const parent, const int x, const int y, { // TRANSLATORS: popup menu item // TRANSLATORS: add 10 item amount to storage - mBrowserBox->addRow("store 10", _("Store 10")); + mBrowserBox->addRow("/invtostorage10 'INVINDEX'", + _("Store 10")); } // TRANSLATORS: popup menu item // TRANSLATORS: add half item amount to storage -- cgit v1.2.3-60-g2f50