summaryrefslogtreecommitdiff
path: root/src/net/ea/inventoryhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-12-13 19:42:43 +0300
committerAndrei Karas <akaras@inbox.ru>2014-12-13 19:42:43 +0300
commitfc9391444b92f8334cbf9918e97cc3563dc52997 (patch)
tree196fb3416963ad38c62ac57ae60fe450237bded4 /src/net/ea/inventoryhandler.cpp
parent7e6d1a6e03052a08fd80ad2589295236ba40a3f1 (diff)
downloadplus-fc9391444b92f8334cbf9918e97cc3563dc52997.tar.gz
plus-fc9391444b92f8334cbf9918e97cc3563dc52997.tar.bz2
plus-fc9391444b92f8334cbf9918e97cc3563dc52997.tar.xz
plus-fc9391444b92f8334cbf9918e97cc3563dc52997.zip
Move processPlayerStorageRemove from ea namespace into eathena and tmwa.
Diffstat (limited to 'src/net/ea/inventoryhandler.cpp')
-rw-r--r--src/net/ea/inventoryhandler.cpp18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/net/ea/inventoryhandler.cpp b/src/net/ea/inventoryhandler.cpp
index c3ddc6c0c..dffcd18bc 100644
--- a/src/net/ea/inventoryhandler.cpp
+++ b/src/net/ea/inventoryhandler.cpp
@@ -270,24 +270,6 @@ void InventoryHandler::processPlayerStorageStatus(Net::MessageIn &msg)
BLOCK_END("InventoryHandler::processPlayerStorageStatus")
}
-void InventoryHandler::processPlayerStorageRemove(Net::MessageIn &msg)
-{
- BLOCK_START("InventoryHandler::processPlayerStorageRemove")
- // Move an item out of storage
- const int index = msg.readInt16("index") - STORAGE_OFFSET;
- const int amount = msg.readInt16("amount");
- if (mStorage)
- {
- if (Item *const item = mStorage->getItem(index))
- {
- item->increaseQuantity(-amount);
- if (item->getQuantity() == 0)
- mStorage->removeItemAt(index);
- }
- }
- BLOCK_END("InventoryHandler::processPlayerStorageRemove")
-}
-
void InventoryHandler::processPlayerStorageClose(Net::MessageIn &msg A_UNUSED)
{
BLOCK_START("InventoryHandler::processPlayerStorageClose")