diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-12-13 20:13:29 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-12-13 20:13:29 +0300 |
commit | fae4c6920d74277cd15821bb7abe41e4351fa119 (patch) | |
tree | ad73ea4e531ec746cc59789fcbc6d092887cb71d | |
parent | 6988830341bb983cc6c31ce708585db97a011ee2 (diff) | |
download | plus-fae4c6920d74277cd15821bb7abe41e4351fa119.tar.gz plus-fae4c6920d74277cd15821bb7abe41e4351fa119.tar.bz2 plus-fae4c6920d74277cd15821bb7abe41e4351fa119.tar.xz plus-fae4c6920d74277cd15821bb7abe41e4351fa119.zip |
Remove "retrieve 10" popup menu handler.
-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 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 |