diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-01-30 17:26:56 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-01-30 17:26:56 +0300 |
commit | a619290b502486ea5b1ff5dd604864ab78c5edc9 (patch) | |
tree | bafe213c8e2ed155ea09e9d91f9a4928306c815c /src/gui/windows | |
parent | 2774a0c9ea6b06c000c60dbcc602862ced0a17b8 (diff) | |
download | manaverse-a619290b502486ea5b1ff5dd604864ab78c5edc9.tar.gz manaverse-a619290b502486ea5b1ff5dd604864ab78c5edc9.tar.bz2 manaverse-a619290b502486ea5b1ff5dd604864ab78c5edc9.tar.xz manaverse-a619290b502486ea5b1ff5dd604864ab78c5edc9.zip |
Fix compilation without eathena.
Diffstat (limited to 'src/gui/windows')
-rw-r--r-- | src/gui/windows/inventorywindow.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gui/windows/inventorywindow.cpp b/src/gui/windows/inventorywindow.cpp index e85207ec5..0a6c4c37f 100644 --- a/src/gui/windows/inventorywindow.cpp +++ b/src/gui/windows/inventorywindow.cpp @@ -402,11 +402,13 @@ void InventoryWindow::action(const ActionEvent &event) ItemAmountWindow::showWindow(ItemAmountWindow::StoreAdd, this, item); } +#ifdef EATHENA_SUPPORT else if (cartWindow) { ItemAmountWindow::showWindow(ItemAmountWindow::CartAdd, this, item); } +#endif } else if (eventId == "sort") { @@ -447,6 +449,7 @@ void InventoryWindow::action(const ActionEvent &event) item->getInvIndex(), item->getQuantity(), InventoryType::STORAGE); } +#ifdef EATHENA_SUPPORT else if (cartWindow) { inventoryHandler->moveItem2(InventoryType::INVENTORY, @@ -454,6 +457,7 @@ void InventoryWindow::action(const ActionEvent &event) InventoryType::CART); } else +#endif { if (PlayerInfo::isItemProtected(item->getId())) return; @@ -482,11 +486,13 @@ void InventoryWindow::action(const ActionEvent &event) ItemAmountWindow::showWindow(ItemAmountWindow::StoreRemove, this, item); } +#ifdef EATHENA_SUPPORT else if (cartWindow) { ItemAmountWindow::showWindow(ItemAmountWindow::CartRemove, this, item); } +#endif } } @@ -827,7 +833,11 @@ void InventoryWindow::updateDropButton() if (!mDropButton) return; +#ifdef EATHENA_SUPPORT if (isStorageActive() || cartWindow) +#else + if (isStorageActive()) +#endif { // TRANSLATORS: inventory button mDropButton->setCaption(_("Store")); |