diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-05-05 16:47:46 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-05-05 16:49:23 +0300 |
commit | 84c27f3885cc075070876603c223b00fc763eb43 (patch) | |
tree | c7ec3d16d6535a529e51a46377cfb6915afffb9e /src/gui/widgets | |
parent | 36835c498ff166cffca985afd8b3cd29d3eef7f3 (diff) | |
download | plus-84c27f3885cc075070876603c223b00fc763eb43.tar.gz plus-84c27f3885cc075070876603c223b00fc763eb43.tar.bz2 plus-84c27f3885cc075070876603c223b00fc763eb43.tar.xz plus-84c27f3885cc075070876603c223b00fc763eb43.zip |
Build parts of dragdropsource.h only if supported server enabled.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r-- | src/gui/widgets/itemcontainer.cpp | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/gui/widgets/itemcontainer.cpp b/src/gui/widgets/itemcontainer.cpp index 723f043d7..f7dec4452 100644 --- a/src/gui/widgets/itemcontainer.cpp +++ b/src/gui/widgets/itemcontainer.cpp @@ -418,10 +418,10 @@ void ItemContainer::mousePressed(MouseEvent &event) case InventoryType::NPC: src = DRAGDROP_SOURCE_NPC; break; +#ifdef EATHENA_SUPPORT case InventoryType::CART: src = DRAGDROP_SOURCE_CART; break; -#ifdef EATHENA_SUPPORT case InventoryType::MAIL: src = DRAGDROP_SOURCE_MAIL; break; @@ -529,10 +529,10 @@ void ItemContainer::mouseReleased(MouseEvent &event) case InventoryType::MAIL: dst = DRAGDROP_SOURCE_MAIL; break; -#endif case InventoryType::CART: dst = DRAGDROP_SOURCE_CART; break; +#endif default: #ifdef EATHENA_SUPPORT case InventoryType::VENDING: @@ -596,7 +596,10 @@ void ItemContainer::mouseReleased(MouseEvent &event) } else if (src == DRAGDROP_SOURCE_INVENTORY && (dst == DRAGDROP_SOURCE_NPC - || dst == DRAGDROP_SOURCE_MAIL)) +#ifdef EATHENA_SUPPORT + || dst == DRAGDROP_SOURCE_MAIL +#endif + )) { inventory = PlayerInfo::getInventory(); const Item *const item = inventory->getItem(dragDrop.getTag()); @@ -614,7 +617,11 @@ void ItemContainer::mouseReleased(MouseEvent &event) } return; } +#ifdef EATHENA_SUPPORT else if (src == DRAGDROP_SOURCE_NPC || src == DRAGDROP_SOURCE_MAIL) +#else + else if (src == DRAGDROP_SOURCE_NPC) +#endif { inventory = PlayerInfo::getInventory(); const Item *const item = inventory->getItem(dragDrop.getTag()); |