summaryrefslogtreecommitdiff
path: root/src/gui/widgets/itemcontainer.cpp
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/itemcontainer.cpp
parentf16af47bd98f865193fcea1bbd9507904e2b20af (diff)
downloadmanaverse-e82f8ed2976b6b6412ab66329e0794225e2030e7.tar.gz
manaverse-e82f8ed2976b6b6412ab66329e0794225e2030e7.tar.bz2
manaverse-e82f8ed2976b6b6412ab66329e0794225e2030e7.tar.xz
manaverse-e82f8ed2976b6b6412ab66329e0794225e2030e7.zip
Remove ServerFeatures haveCards because it depend only on server type.
Diffstat (limited to 'src/gui/widgets/itemcontainer.cpp')
-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)