diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-05-01 22:32:09 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-05-01 22:32:09 +0300 |
commit | 570f7c9b66f9d0a11b7845a4c4d3bea0b7b7b628 (patch) | |
tree | 81988a57a1b7a1d55e324b57d1e4c00a9de82d5b /src/gui/widgets | |
parent | 3f5599082b5543a7f1c6a7bf3d631ac3805acc23 (diff) | |
download | manaplus-570f7c9b66f9d0a11b7845a4c4d3bea0b7b7b628.tar.gz manaplus-570f7c9b66f9d0a11b7845a4c4d3bea0b7b7b628.tar.bz2 manaplus-570f7c9b66f9d0a11b7845a4c4d3bea0b7b7b628.tar.xz manaplus-570f7c9b66f9d0a11b7845a4c4d3bea0b7b7b628.zip |
Remove ServerFeatures haveMultyStatusUp because it depend only on server type.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r-- | src/gui/widgets/attrs/changedisplay.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/widgets/attrs/changedisplay.cpp b/src/gui/widgets/attrs/changedisplay.cpp index 96a6a04d3..1f55563e4 100644 --- a/src/gui/widgets/attrs/changedisplay.cpp +++ b/src/gui/widgets/attrs/changedisplay.cpp @@ -30,6 +30,7 @@ #include "gui/widgets/containerplacer.h" #include "gui/widgets/layouthelper.h" +#include "net/net.h" #include "net/playerhandler.h" #include "net/serverfeatures.h" @@ -102,7 +103,7 @@ void ChangeDisplay::action(const ActionEvent &event) const int newbase = PlayerInfo::getStatBase(mId) + cnt; PlayerInfo::setStatBase(mId, newbase); - if (serverFeatures->haveMultyStatusUp()) + if (Net::getNetworkType() == ServerType::EATHENA) { playerHandler->increaseAttribute(mId, cnt); } |