diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-05-01 21:57:50 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-05-01 21:57:50 +0300 |
commit | 8a1eb6607cdd4fbdc56b8217f7b9ec3987c1ec2d (patch) | |
tree | 9252c98b1fdf0f71aff58b8777090da94356c593 /src/gui/windows/npcselldialog.cpp | |
parent | 53f7874c0ae9e4e6337afdab6ec8383ae2f66f7c (diff) | |
download | plus-8a1eb6607cdd4fbdc56b8217f7b9ec3987c1ec2d.tar.gz plus-8a1eb6607cdd4fbdc56b8217f7b9ec3987c1ec2d.tar.bz2 plus-8a1eb6607cdd4fbdc56b8217f7b9ec3987c1ec2d.tar.xz plus-8a1eb6607cdd4fbdc56b8217f7b9ec3987c1ec2d.zip |
Remove ServerFeatures haveAdvancedBuySell because it depend only on server type.
Diffstat (limited to 'src/gui/windows/npcselldialog.cpp')
-rw-r--r-- | src/gui/windows/npcselldialog.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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) { |