summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-05-01 18:45:23 +0300
committerAndrei Karas <akaras@inbox.ru>2017-05-01 18:45:23 +0300
commit24b60886fd34770af1b97a36df72c58c4f73539f (patch)
tree83081e9eac30254149eb53f2dd9b07778a95c34b /src/gui
parent89bc2ec72aa3713fc5a02ec1fcc4ea826043e9c3 (diff)
downloadmv-24b60886fd34770af1b97a36df72c58c4f73539f.tar.gz
mv-24b60886fd34770af1b97a36df72c58c4f73539f.tar.bz2
mv-24b60886fd34770af1b97a36df72c58c4f73539f.tar.xz
mv-24b60886fd34770af1b97a36df72c58c4f73539f.zip
Remove ServerFeatures haveCharRename because it depend only on server type.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/windows/charselectdialog.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/windows/charselectdialog.cpp b/src/gui/windows/charselectdialog.cpp
index f7edbfc24..a2c40de7f 100644
--- a/src/gui/windows/charselectdialog.cpp
+++ b/src/gui/windows/charselectdialog.cpp
@@ -45,6 +45,7 @@
#include "net/character.h"
#include "net/charserverhandler.h"
#include "net/logindata.h"
+#include "net/net.h"
#include "net/serverfeatures.h"
#include "resources/db/unitsdb.h"
@@ -99,7 +100,9 @@ CharSelectDialog::CharSelectDialog(LoginData &data) :
n ++;
placer(n, 0, mDeleteButton);
n ++;
- if (serverFeatures->haveCharRename())
+#ifdef TMWA_SUPPORT
+ if (Net::getNetworkType() == ServerType::EATHENA)
+#endif
{
mRenameButton = new Button(this,
// TRANSLATORS: character rename button