summaryrefslogtreecommitdiff
path: root/src/gui/windows/editserverdialog.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-07-28 16:03:59 +0300
committerAndrei Karas <akaras@inbox.ru>2016-07-28 16:34:59 +0300
commitb96e6eeba6e1511568c8291bd8cb6a6d3706635c (patch)
treed021843c88d856f86f018547c30f1181290ffcbe /src/gui/windows/editserverdialog.cpp
parent60859a71dd9794b0216cc7a60146d417e06dbbad (diff)
downloadmanaverse-b96e6eeba6e1511568c8291bd8cb6a6d3706635c.tar.gz
manaverse-b96e6eeba6e1511568c8291bd8cb6a6d3706635c.tar.bz2
manaverse-b96e6eeba6e1511568c8291bd8cb6a6d3706635c.tar.xz
manaverse-b96e6eeba6e1511568c8291bd8cb6a6d3706635c.zip
Remove define EATHENA_SUPPORT from all code.
Now eathena like support enabled always.
Diffstat (limited to 'src/gui/windows/editserverdialog.cpp')
-rw-r--r--src/gui/windows/editserverdialog.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/gui/windows/editserverdialog.cpp b/src/gui/windows/editserverdialog.cpp
index 154dca6b4..8f65bb8f5 100644
--- a/src/gui/windows/editserverdialog.cpp
+++ b/src/gui/windows/editserverdialog.cpp
@@ -149,15 +149,11 @@ EditServerDialog::EditServerDialog(ServerDialog *const parent,
switch (mServer.type)
{
case ServerType::EATHENA:
-#ifdef EATHENA_SUPPORT
#ifdef TMWA_SUPPORT
mTypeField->setSelected(1);
#else // TMWA_SUPPORT
mTypeField->setSelected(0);
#endif // TMWA_SUPPORT
-#else // EATHENA_SUPPORT
- mTypeField->setSelected(0);
-#endif // EATHENA_SUPPORT
break;
default:
case ServerType::UNKNOWN:
@@ -165,15 +161,11 @@ EditServerDialog::EditServerDialog(ServerDialog *const parent,
mTypeField->setSelected(0);
break;
case ServerType::EVOL2:
-#ifdef EATHENA_SUPPORT
#ifdef TMWA_SUPPORT
mTypeField->setSelected(2);
#else // TMWA_SUPPORT
mTypeField->setSelected(1);
#endif // TMWA_SUPPORT
-#else // EATHENA_SUPPORT
- mTypeField->setSelected(0);
-#endif // EATHENA_SUPPORT
break;
}
@@ -236,7 +228,6 @@ void EditServerDialog::action(const ActionEvent &event)
mPortField->getText().c_str()));
mServer.persistentIp = mPersistentIp->isSelected();
-#if defined(TMWA_SUPPORT) || defined(EATHENA_SUPPORT)
if (mTypeField)
{
switch (mTypeField->getSelected())
@@ -245,16 +236,13 @@ void EditServerDialog::action(const ActionEvent &event)
case 0:
mServer.type = ServerType::TMWATHENA;
break;
-#ifdef EATHENA_SUPPORT
case 1:
mServer.type = ServerType::EATHENA;
break;
case 2:
mServer.type = ServerType::EVOL2;
break;
-#endif
#else
-#ifdef EATHENA_SUPPORT
case 0:
mServer.type = ServerType::EATHENA;
break;
@@ -262,14 +250,12 @@ void EditServerDialog::action(const ActionEvent &event)
mServer.type = ServerType::EVOL2;
break;
#endif
-#endif
default:
mServer.type = ServerType::UNKNOWN;
break;
}
}
else
-#endif // defined(TMWA_SUPPORT) || defined(EATHENA_SUPPORT)
{
mServer.type = ServerType::TMWATHENA;
}