diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-05-05 17:15:59 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-05-05 17:15:59 +0300 |
commit | 45460ca58b3cbf6d92fe3cac1311bbfc9d00e841 (patch) | |
tree | 5f7da40a39218322b09338d990bf2bda4cd49b80 /src/gui/windows/itemamountwindow.cpp | |
parent | 84c27f3885cc075070876603c223b00fc763eb43 (diff) | |
download | manaverse-45460ca58b3cbf6d92fe3cac1311bbfc9d00e841.tar.gz manaverse-45460ca58b3cbf6d92fe3cac1311bbfc9d00e841.tar.bz2 manaverse-45460ca58b3cbf6d92fe3cac1311bbfc9d00e841.tar.xz manaverse-45460ca58b3cbf6d92fe3cac1311bbfc9d00e841.zip |
Build parts of inventorytype.h only if supported server enabled.
Diffstat (limited to 'src/gui/windows/itemamountwindow.cpp')
-rw-r--r-- | src/gui/windows/itemamountwindow.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/gui/windows/itemamountwindow.cpp b/src/gui/windows/itemamountwindow.cpp index f37e88c46..2933c57a1 100644 --- a/src/gui/windows/itemamountwindow.cpp +++ b/src/gui/windows/itemamountwindow.cpp @@ -74,18 +74,10 @@ void ItemAmountWindow::finish(const Item *const item, inventoryHandler->moveItem2(InventoryType::INVENTORY, item->getInvIndex(), amount, InventoryType::STORAGE); break; - case CartAdd: - inventoryHandler->moveItem2(InventoryType::INVENTORY, - item->getInvIndex(), amount, InventoryType::CART); - break; case StoreRemove: inventoryHandler->moveItem2(InventoryType::STORAGE, item->getInvIndex(), amount, InventoryType::INVENTORY); break; - case CartRemove: - inventoryHandler->moveItem2(InventoryType::CART, - item->getInvIndex(), amount, InventoryType::INVENTORY); - break; case ShopBuyAdd: if (shopWindow) shopWindow->addBuyItem(item, amount, price); @@ -95,6 +87,14 @@ void ItemAmountWindow::finish(const Item *const item, shopWindow->addSellItem(item, amount, price); break; #ifdef EATHENA_SUPPORT + case CartAdd: + inventoryHandler->moveItem2(InventoryType::INVENTORY, + item->getInvIndex(), amount, InventoryType::CART); + break; + case CartRemove: + inventoryHandler->moveItem2(InventoryType::CART, + item->getInvIndex(), amount, InventoryType::INVENTORY); + break; case MailAdd: if (mailEditWindow) mailEditWindow->addItem(item, amount); |