summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-05-01 21:17:28 +0300
committerAndrei Karas <akaras@inbox.ru>2017-05-01 21:17:28 +0300
commite82f8ed2976b6b6412ab66329e0794225e2030e7 (patch)
treef0dbea61e6aa58edb0f16705612744880b4586c9 /src/gui/widgets
parentf16af47bd98f865193fcea1bbd9507904e2b20af (diff)
downloadplus-e82f8ed2976b6b6412ab66329e0794225e2030e7.tar.gz
plus-e82f8ed2976b6b6412ab66329e0794225e2030e7.tar.bz2
plus-e82f8ed2976b6b6412ab66329e0794225e2030e7.tar.xz
plus-e82f8ed2976b6b6412ab66329e0794225e2030e7.zip
Remove ServerFeatures haveCards because it depend only on server type.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/itemcontainer.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/widgets/itemcontainer.cpp b/src/gui/widgets/itemcontainer.cpp
index 4ac331078..4ac62e86e 100644
--- a/src/gui/widgets/itemcontainer.cpp
+++ b/src/gui/widgets/itemcontainer.cpp
@@ -46,6 +46,7 @@
#include "input/inputmanager.h"
#include "net/inventoryhandler.h"
+#include "net/net.h"
#include "net/npchandler.h"
#include "net/serverfeatures.h"
#include "net/tradehandler.h"
@@ -797,7 +798,7 @@ void ItemContainer::mouseReleased(MouseEvent &event)
if (src == DragDropSource::Inventory
&& dst == DragDropSource::Inventory)
{
- if (!serverFeatures->haveCards())
+ if (Net::getNetworkType() == ServerType::TMWATHENA)
return;
const int index = getSlotIndex(event.getX(), event.getY());
if (index == Inventory::NO_SLOT_INDEX)