diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-05-01 21:09:57 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-05-01 21:09:57 +0300 |
commit | f16af47bd98f865193fcea1bbd9507904e2b20af (patch) | |
tree | 3a01a3a794b24114426bb5dd80b5d03136548770 /src/game.cpp | |
parent | d9be3eb4cf0ebbe29ef93759a3d168ebe9e592c1 (diff) | |
download | manaplus-f16af47bd98f865193fcea1bbd9507904e2b20af.tar.gz manaplus-f16af47bd98f865193fcea1bbd9507904e2b20af.tar.bz2 manaplus-f16af47bd98f865193fcea1bbd9507904e2b20af.tar.xz manaplus-f16af47bd98f865193fcea1bbd9507904e2b20af.zip |
Remove ServerFeatures haveCart because it depend only on server type.
Diffstat (limited to 'src/game.cpp')
-rw-r--r-- | src/game.cpp | 3 |
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()); |