From 24b60886fd34770af1b97a36df72c58c4f73539f Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 1 May 2017 18:45:23 +0300 Subject: Remove ServerFeatures haveCharRename because it depend only on server type. --- src/gui/windows/charselectdialog.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/gui') 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 -- cgit v1.2.3-60-g2f50