diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-12-13 14:54:04 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-12-13 14:54:04 +0300 |
commit | 9b4893583faada67faa7df938a35367328939a8f (patch) | |
tree | b15365401ee0b5c3875cd6a056c1439f3d015ec3 /src | |
parent | 5abccb73361a7133b0aa73fe845e8945ebf37964 (diff) | |
download | manaverse-9b4893583faada67faa7df938a35367328939a8f.tar.gz manaverse-9b4893583faada67faa7df938a35367328939a8f.tar.bz2 manaverse-9b4893583faada67faa7df938a35367328939a8f.tar.xz manaverse-9b4893583faada67faa7df938a35367328939a8f.zip |
Remove "store 10" popup menu handler.
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/popups/popupmenu.cpp | 14 |
1 files changed, 3 insertions, 11 deletions
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 |