summaryrefslogtreecommitdiff
path: root/src/net/eathena/inventoryhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-01-24 15:31:06 +0300
committerAndrei Karas <akaras@inbox.ru>2015-01-24 15:31:06 +0300
commit3f5c128b889b4cb41f9782fe1531c55e7d07432f (patch)
treeb5903e10142f876d29bf4d4643261f1b058fefe9 /src/net/eathena/inventoryhandler.cpp
parentc53839e9125a72e2bbc5e479934b5b9111bef5d6 (diff)
downloadmv-3f5c128b889b4cb41f9782fe1531c55e7d07432f.tar.gz
mv-3f5c128b889b4cb41f9782fe1531c55e7d07432f.tar.bz2
mv-3f5c128b889b4cb41f9782fe1531c55e7d07432f.tar.xz
mv-3f5c128b889b4cb41f9782fe1531c55e7d07432f.zip
Move inventory type into separate file.
Diffstat (limited to 'src/net/eathena/inventoryhandler.cpp')
-rw-r--r--src/net/eathena/inventoryhandler.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/net/eathena/inventoryhandler.cpp b/src/net/eathena/inventoryhandler.cpp
index da8091f98..d8001b74f 100644
--- a/src/net/eathena/inventoryhandler.cpp
+++ b/src/net/eathena/inventoryhandler.cpp
@@ -264,26 +264,26 @@ void InventoryHandler::moveItem2(const int source,
{
int packet = 0;
int offset = INVENTORY_OFFSET;
- if (source == Inventory::INVENTORY)
+ if (source == InventoryType::INVENTORY)
{
- if (destination == Inventory::STORAGE)
+ if (destination == InventoryType::STORAGE)
packet = CMSG_MOVE_TO_STORAGE;
- else if (destination == Inventory::CART)
+ else if (destination == InventoryType::CART)
packet = CMSG_MOVE_TO_CART;
}
- else if (source == Inventory::STORAGE)
+ else if (source == InventoryType::STORAGE)
{
offset = STORAGE_OFFSET;
- if (destination == Inventory::INVENTORY)
+ if (destination == InventoryType::INVENTORY)
packet = CSMG_MOVE_FROM_STORAGE;
- else if (destination == Inventory::CART)
+ else if (destination == InventoryType::CART)
packet = CMSG_MOVE_FROM_STORAGE_TO_CART;
}
- else if (source == Inventory::CART)
+ else if (source == InventoryType::CART)
{
- if (destination == Inventory::INVENTORY)
+ if (destination == InventoryType::INVENTORY)
packet = CMSG_MOVE_FROM_CART;
- else if (destination == Inventory::STORAGE)
+ else if (destination == InventoryType::STORAGE)
packet = CMSG_MOVE_FROM_CART_TO_STORAGE;
}