summaryrefslogtreecommitdiff
path: root/src/gui/popups/popupmenu.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-17 10:55:20 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-17 10:55:20 +0300
commitfd050698f74b5dc7a9867bc93ba6b7c65ef2462f (patch)
tree246017e7d1b399e60a5d7b97a7106cd75587b88f /src/gui/popups/popupmenu.cpp
parent4228763829f71ec4db50ed185483d7707c5e47eb (diff)
downloadManaVerse-fd050698f74b5dc7a9867bc93ba6b7c65ef2462f.tar.gz
ManaVerse-fd050698f74b5dc7a9867bc93ba6b7c65ef2462f.tar.bz2
ManaVerse-fd050698f74b5dc7a9867bc93ba6b7c65ef2462f.tar.xz
ManaVerse-fd050698f74b5dc7a9867bc93ba6b7c65ef2462f.zip
Remove getter for inventoryHandler.
Diffstat (limited to 'src/gui/popups/popupmenu.cpp')
-rw-r--r--src/gui/popups/popupmenu.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp
index 8e9939991..1c4722419 100644
--- a/src/gui/popups/popupmenu.cpp
+++ b/src/gui/popups/popupmenu.cpp
@@ -1191,25 +1191,25 @@ void PopupMenu::handleLink(const std::string &link,
int cnt = 10;
if (cnt > mItem->getQuantity())
cnt = mItem->getQuantity();
- Net::getInventoryHandler()->moveItem2(Inventory::INVENTORY,
+ inventoryHandler->moveItem2(Inventory::INVENTORY,
mItem->getInvIndex(), cnt,
Inventory::STORAGE);
}
else if (link == "store half" && mItem)
{
- Net::getInventoryHandler()->moveItem2(Inventory::INVENTORY,
+ inventoryHandler->moveItem2(Inventory::INVENTORY,
mItem->getInvIndex(), mItem->getQuantity() / 2,
Inventory::STORAGE);
}
else if (link == "store all-1" && mItem)
{
- Net::getInventoryHandler()->moveItem2(Inventory::INVENTORY,
+ inventoryHandler->moveItem2(Inventory::INVENTORY,
mItem->getInvIndex(), mItem->getQuantity() - 1,
Inventory::STORAGE);
}
else if (link == "store all" && mItem)
{
- Net::getInventoryHandler()->moveItem2(Inventory::INVENTORY,
+ inventoryHandler->moveItem2(Inventory::INVENTORY,
mItem->getInvIndex(), mItem->getQuantity(),
Inventory::STORAGE);
}
@@ -1259,25 +1259,25 @@ void PopupMenu::handleLink(const std::string &link,
int cnt = 10;
if (cnt > mItem->getQuantity())
cnt = mItem->getQuantity();
- Net::getInventoryHandler()->moveItem2(Inventory::STORAGE,
+ inventoryHandler->moveItem2(Inventory::STORAGE,
mItem->getInvIndex(), cnt,
Inventory::INVENTORY);
}
else if (link == "retrieve half" && mItem)
{
- Net::getInventoryHandler()->moveItem2(Inventory::STORAGE,
+ inventoryHandler->moveItem2(Inventory::STORAGE,
mItem->getInvIndex(), mItem->getQuantity() / 2,
Inventory::INVENTORY);
}
else if (link == "retrieve all-1" && mItem)
{
- Net::getInventoryHandler()->moveItem2(Inventory::STORAGE,
+ inventoryHandler->moveItem2(Inventory::STORAGE,
mItem->getInvIndex(), mItem->getQuantity() - 1,
Inventory::INVENTORY);
}
else if (link == "retrieve all" && mItem)
{
- Net::getInventoryHandler()->moveItem2(Inventory::STORAGE,
+ inventoryHandler->moveItem2(Inventory::STORAGE,
mItem->getInvIndex(), mItem->getQuantity(),
Inventory::INVENTORY);
}
@@ -2856,7 +2856,7 @@ void PopupMenu::addUseDrop(const Item *const item, const bool isProtected)
}
}
- if (Net::getInventoryHandler()->canSplit(item))
+ if (inventoryHandler->canSplit(item))
{
// TRANSLATORS: popup menu item
// TRANSLATORS: split items