summaryrefslogtreecommitdiff
path: root/src/gui/serverdialog.cpp
diff options
context:
space:
mode:
authorBertram <yohanndotferreiraatorange.fr>2010-04-16 13:58:56 +0200
committerBertram <yohanndotferreiraatorange.fr>2010-04-17 12:03:44 +0200
commit3ae525b05858af105cc7e3eb6ac7316fc2f5bbd5 (patch)
tree5737c40d37a7b87897b9dc9b422198b28a18b13a /src/gui/serverdialog.cpp
parent924760c45e0f1aa1105e192bd83d6a4ce2c80f81 (diff)
downloadmana-3ae525b05858af105cc7e3eb6ac7316fc2f5bbd5.tar.gz
mana-3ae525b05858af105cc7e3eb6ac7316fc2f5bbd5.tar.bz2
mana-3ae525b05858af105cc7e3eb6ac7316fc2f5bbd5.tar.xz
mana-3ae525b05858af105cc7e3eb6ac7316fc2f5bbd5.zip
Changed eAthena protocol name to TmwAthena and changed the config files accordingly.
This makes room for the actual eAthena protocol future inclusion.
Diffstat (limited to 'src/gui/serverdialog.cpp')
-rw-r--r--src/gui/serverdialog.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/gui/serverdialog.cpp b/src/gui/serverdialog.cpp
index dfe809bc..0fba5638 100644
--- a/src/gui/serverdialog.cpp
+++ b/src/gui/serverdialog.cpp
@@ -57,10 +57,10 @@ static std::string serverTypeToString(ServerInfo::Type type)
{
switch (type)
{
- case ServerInfo::EATHENA:
- return "eAthena";
+ case ServerInfo::TMWATHENA:
+ return "TmwAthena";
case ServerInfo::MANASERV:
- return "manaserv";
+ return "ManaServ";
default:
return "";
}
@@ -71,7 +71,7 @@ static unsigned short defaultPortForServerType(ServerInfo::Type type)
switch (type)
{
default:
- case ServerInfo::EATHENA:
+ case ServerInfo::TMWATHENA:
return 6901;
case ServerInfo::MANASERV:
return 9601;
@@ -116,9 +116,9 @@ void ServersListModel::setVersionString(int index, const std::string &version)
std::string TypeListModel::getElementAt(int elementIndex)
{
if (elementIndex == 0)
- return "eAthena";
+ return "TmwAthena";
else if (elementIndex == 1)
- return "Manaserv";
+ return "ManaServ";
else
return "Unknown";
}
@@ -332,7 +332,7 @@ void ServerDialog::action(const gcn::ActionEvent &event)
switch (mTypeField->getSelected())
{
case 0:
- mServerInfo->type = ServerInfo::EATHENA;
+ mServerInfo->type = ServerInfo::TMWATHENA;
break;
case 1:
mServerInfo->type = ServerInfo::MANASERV;
@@ -398,7 +398,7 @@ void ServerDialog::valueChanged(const gcn::SelectionEvent &)
mPortField->setText(toString(myServer.port));
switch (myServer.type)
{
- case ServerInfo::EATHENA:
+ case ServerInfo::TMWATHENA:
case ServerInfo::UNKNOWN:
mTypeField->setSelected(0);
break;