From fc9391444b92f8334cbf9918e97cc3563dc52997 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 13 Dec 2014 19:42:43 +0300 Subject: Move processPlayerStorageRemove from ea namespace into eathena and tmwa. --- src/net/ea/inventoryhandler.cpp | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'src/net/ea/inventoryhandler.cpp') 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") -- cgit v1.2.3-70-g09d2