diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-10-30 07:55:47 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-10-30 07:55:47 -0600 |
commit | d5d10a30ceb4a9d6bbb19fe8cbcf878cd841cd53 (patch) | |
tree | ab809df771094d860c5f2b4f1ad0f1083c6a4dca /src/net/ea/gamehandler.cpp | |
parent | 1c0ee2fc301d88c5c696392d9959e82e2acd0086 (diff) | |
download | mana-client-d5d10a30ceb4a9d6bbb19fe8cbcf878cd841cd53.tar.gz mana-client-d5d10a30ceb4a9d6bbb19fe8cbcf878cd841cd53.tar.bz2 mana-client-d5d10a30ceb4a9d6bbb19fe8cbcf878cd841cd53.tar.xz mana-client-d5d10a30ceb4a9d6bbb19fe8cbcf878cd841cd53.zip |
Support switching characters under eAthena
Diffstat (limited to 'src/net/ea/gamehandler.cpp')
-rw-r--r-- | src/net/ea/gamehandler.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/net/ea/gamehandler.cpp b/src/net/ea/gamehandler.cpp index 012e6f8c..f101e03a 100644 --- a/src/net/ea/gamehandler.cpp +++ b/src/net/ea/gamehandler.cpp @@ -35,6 +35,8 @@ #include "gui/widgets/chattab.h" +#include "gui/okdialog.h" + #include "utils/gettext.h" #include "utils/stringutils.h" @@ -51,6 +53,8 @@ GameHandler::GameHandler() SMSG_MAP_LOGIN_SUCCESS, SMSG_SERVER_PING, SMSG_WHO_ANSWER, + SMSG_CHAR_SWITCH_RESPONSE, + SMSG_MAP_QUIT_RESPONSE, 0 }; handledMessages = _messages; @@ -84,6 +88,20 @@ void GameHandler::handleMessage(MessageIn &msg) localChatTab->chatLog(strprintf(_("Online users: %d"), msg.readInt32()), BY_SERVER); break; + + case SMSG_CHAR_SWITCH_RESPONSE: + if (msg.readInt8()) + { + state = STATE_SWITCH_CHARACTER; + } + break; + + case SMSG_MAP_QUIT_RESPONSE: + if (msg.readInt8()) + { + new OkDialog(_("Game"), _("Request to quit denied!"), NULL); + } + break; } } |