summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-12-13 20:13:29 +0300
committerAndrei Karas <akaras@inbox.ru>2014-12-13 20:13:29 +0300
commitfae4c6920d74277cd15821bb7abe41e4351fa119 (patch)
treead73ea4e531ec746cc59789fcbc6d092887cb71d /src/gui
parent6988830341bb983cc6c31ce708585db97a011ee2 (diff)
downloadmanaverse-fae4c6920d74277cd15821bb7abe41e4351fa119.tar.gz
manaverse-fae4c6920d74277cd15821bb7abe41e4351fa119.tar.bz2
manaverse-fae4c6920d74277cd15821bb7abe41e4351fa119.tar.xz
manaverse-fae4c6920d74277cd15821bb7abe41e4351fa119.zip
Remove "retrieve 10" popup menu handler.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/popups/popupmenu.cpp14
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