diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-11-06 00:13:06 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-11-06 00:13:06 +0300 |
commit | 6245aed671abe032d47db8b0bce7d7b3f3ca522a (patch) | |
tree | ecc1a5c4b5f18c3554c1dcbf7c82ce7f3ad4e704 /src/gui/windows/editserverdialog.cpp | |
parent | 4cac7fcfd4ee4fc7c5ca6bd932de39bb28ed2ea3 (diff) | |
download | manaplus-6245aed671abe032d47db8b0bce7d7b3f3ca522a.tar.gz manaplus-6245aed671abe032d47db8b0bce7d7b3f3ca522a.tar.bz2 manaplus-6245aed671abe032d47db8b0bce7d7b3f3ca522a.tar.xz manaplus-6245aed671abe032d47db8b0bce7d7b3f3ca522a.zip |
Add server type Evol2.
Diffstat (limited to 'src/gui/windows/editserverdialog.cpp')
-rw-r--r-- | src/gui/windows/editserverdialog.cpp | 17 |
1 files changed, 17 insertions, 0 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: |