summaryrefslogtreecommitdiff
path: root/src/gui/windows
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/windows')
-rw-r--r--src/gui/windows/buydialog.cpp3
-rw-r--r--src/gui/windows/npcselldialog.cpp3
2 files changed, 4 insertions, 2 deletions
diff --git a/src/gui/windows/buydialog.cpp b/src/gui/windows/buydialog.cpp
index 1a2cf059b..9bf074ef5 100644
--- a/src/gui/windows/buydialog.cpp
+++ b/src/gui/windows/buydialog.cpp
@@ -50,6 +50,7 @@
#include "net/buysellhandler.h"
#include "net/cashshophandler.h"
#include "net/markethandler.h"
+#include "net/net.h"
#include "net/vendinghandler.h"
#include "net/serverfeatures.h"
#include "net/npchandler.h"
@@ -221,7 +222,7 @@ BuyDialog::BuyDialog(const BeingId npcId,
mMoney(0),
mAmountItems(0),
mMaxItems(0),
- mAdvanced(serverFeatures ? serverFeatures->haveAdvancedBuySell() : false)
+ mAdvanced(Net::getNetworkType() == ServerType::EATHENA)
{
init();
}
diff --git a/src/gui/windows/npcselldialog.cpp b/src/gui/windows/npcselldialog.cpp
index 807b252cb..28dacf1dc 100644
--- a/src/gui/windows/npcselldialog.cpp
+++ b/src/gui/windows/npcselldialog.cpp
@@ -34,6 +34,7 @@
#include "gui/widgets/slider.h"
#include "net/buysellhandler.h"
+#include "net/net.h"
#include "net/npchandler.h"
#include "net/serverfeatures.h"
@@ -46,7 +47,7 @@
NpcSellDialog::NpcSellDialog(const BeingId npcId) :
SellDialog(IsSell_true,
- (serverFeatures && serverFeatures->haveAdvancedBuySell()) ?
+ (Net::getNetworkType() == ServerType::EATHENA) ?
Advanced_true : Advanced_false),
mNpcId(npcId)
{