summaryrefslogtreecommitdiff
path: root/src/gui/windows
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/windows')
-rw-r--r--src/gui/windows/editserverdialog.cpp17
-rw-r--r--src/gui/windows/serverdialog.cpp9
2 files changed, 25 insertions, 1 deletions
diff --git a/src/gui/windows/editserverdialog.cpp b/src/gui/windows/editserverdialog.cpp
index 6d06bba08..13b1ea0a1 100644
--- a/src/gui/windows/editserverdialog.cpp
+++ b/src/gui/windows/editserverdialog.cpp
@@ -166,6 +166,17 @@ EditServerDialog::EditServerDialog(ServerDialog *const parent,
mTypeField->setSelected(0);
#endif // TMWA_SUPPORT
break;
+ case ServerInfo::EVOL2:
+#ifdef EATHENA_SUPPORT
+#ifdef TMWA_SUPPORT
+ mTypeField->setSelected(3);
+#else // TMWA_SUPPORT
+ mTypeField->setSelected(1);
+#endif // TMWA_SUPPORT
+#else // EATHENA_SUPPORT
+ mTypeField->setSelected(0);
+#endif // EATHENA_SUPPORT
+ break;
}
setLocationRelativeTo(getParentWindow());
@@ -237,12 +248,18 @@ void EditServerDialog::action(const ActionEvent &event)
case 2:
mServer.type = ServerInfo::EATHENA;
break;
+ case 3:
+ mServer.type = ServerInfo::EVOL2;
+ break;
#endif
#else
#ifdef EATHENA_SUPPORT
case 0:
mServer.type = ServerInfo::EATHENA;
break;
+ case 1:
+ mServer.type = ServerInfo::EVOL2;
+ break;
#endif
#endif
default:
diff --git a/src/gui/windows/serverdialog.cpp b/src/gui/windows/serverdialog.cpp
index 035a98a10..ffb9c3bb9 100644
--- a/src/gui/windows/serverdialog.cpp
+++ b/src/gui/windows/serverdialog.cpp
@@ -74,9 +74,15 @@ static std::string serverTypeToString(const ServerInfo::Type type)
case ServerInfo::EVOL:
return "";
#endif
- case ServerInfo::EATHENA:
#ifdef EATHENA_SUPPORT
+ case ServerInfo::EATHENA:
return "eAthena";
+ case ServerInfo::EVOL2:
+ return "Evol2";
+#else
+ case ServerInfo::EATHENA:
+ case ServerInfo::EVOL2:
+ return "";
#endif
default:
case ServerInfo::UNKNOWN:
@@ -90,6 +96,7 @@ static uint16_t defaultPortForServerType(const ServerInfo::Type type)
{
default:
case ServerInfo::EATHENA:
+ case ServerInfo::EVOL2:
#ifdef EATHENA_SUPPORT
return 6900;
#endif