diff options
author | Bertram <yohanndotferreiraatorange.fr> | 2010-04-16 13:58:56 +0200 |
---|---|---|
committer | Bertram <yohanndotferreiraatorange.fr> | 2010-04-17 12:03:44 +0200 |
commit | 3ae525b05858af105cc7e3eb6ac7316fc2f5bbd5 (patch) | |
tree | 5737c40d37a7b87897b9dc9b422198b28a18b13a /src/gui | |
parent | 924760c45e0f1aa1105e192bd83d6a4ce2c80f81 (diff) | |
download | mana-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')
-rw-r--r-- | src/gui/serverdialog.cpp | 16 | ||||
-rw-r--r-- | src/gui/skilldialog.cpp | 2 | ||||
-rw-r--r-- | src/gui/viewport.cpp | 4 |
3 files changed, 11 insertions, 11 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; diff --git a/src/gui/skilldialog.cpp b/src/gui/skilldialog.cpp index 0a5b8d71..528e8539 100644 --- a/src/gui/skilldialog.cpp +++ b/src/gui/skilldialog.cpp @@ -301,7 +301,7 @@ void SkillDialog::loadSkills(const std::string &file) { logger->log("Error loading skills file: %s", file.c_str()); - if (Net::getNetworkType() == ServerInfo::EATHENA) + if (Net::getNetworkType() == ServerInfo::TMWATHENA) { SkillModel *model = new SkillModel(); SkillInfo *skill = new SkillInfo; diff --git a/src/gui/viewport.cpp b/src/gui/viewport.cpp index ac9bfb2e..99325db8 100644 --- a/src/gui/viewport.cpp +++ b/src/gui/viewport.cpp @@ -261,7 +261,7 @@ void Viewport::_drawDebugPath(Graphics *graphics) Path debugPath; - if (Net::getNetworkType() == ServerInfo::EATHENA) + if (Net::getNetworkType() == ServerInfo::TMWATHENA) { const int mouseTileX = (mMouseX + (int) mPixelViewX) / 32; const int mouseTileY = (mMouseY + (int) mPixelViewY) / 32; @@ -305,7 +305,7 @@ void Viewport::_drawPath(Graphics *graphics, const Path &path, { graphics->setColor(color); - if (Net::getNetworkType() == ServerInfo::EATHENA) + if (Net::getNetworkType() == ServerInfo::TMWATHENA) { for (Path::const_iterator i = path.begin(); i != path.end(); ++i) { |