summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-05-01 21:09:57 +0300
committerAndrei Karas <akaras@inbox.ru>2017-05-01 21:09:57 +0300
commitf16af47bd98f865193fcea1bbd9507904e2b20af (patch)
tree3a01a3a794b24114426bb5dd80b5d03136548770 /src/game.cpp
parentd9be3eb4cf0ebbe29ef93759a3d168ebe9e592c1 (diff)
downloadplus-f16af47bd98f865193fcea1bbd9507904e2b20af.tar.gz
plus-f16af47bd98f865193fcea1bbd9507904e2b20af.tar.bz2
plus-f16af47bd98f865193fcea1bbd9507904e2b20af.tar.xz
plus-f16af47bd98f865193fcea1bbd9507904e2b20af.zip
Remove ServerFeatures haveCart because it depend only on server type.
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game.cpp b/src/game.cpp
index c8d51aff4..c9ef20ea2 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -104,6 +104,7 @@
#include "net/generalhandler.h"
#include "net/gamehandler.h"
+#include "net/net.h"
#include "net/packetcounters.h"
#include "net/serverfeatures.h"
@@ -210,7 +211,7 @@ static void createGuiWindows()
CREATEWIDGETV0(miniStatusWindow, MiniStatusWindow);
CREATEWIDGETV(inventoryWindow, InventoryWindow,
PlayerInfo::getInventory());
- if (serverFeatures && serverFeatures->haveCart())
+ if (Net::getNetworkType() == ServerType::EATHENA)
{
CREATEWIDGETV(cartWindow, InventoryWindow,
PlayerInfo::getCartInventory());