summaryrefslogtreecommitdiff
path: root/src/net/ea/gamehandler.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-10-30 07:55:47 -0600
committerJared Adams <jaxad0127@gmail.com>2009-10-30 07:55:47 -0600
commitd5d10a30ceb4a9d6bbb19fe8cbcf878cd841cd53 (patch)
treeab809df771094d860c5f2b4f1ad0f1083c6a4dca /src/net/ea/gamehandler.cpp
parent1c0ee2fc301d88c5c696392d9959e82e2acd0086 (diff)
downloadMana-d5d10a30ceb4a9d6bbb19fe8cbcf878cd841cd53.tar.gz
Mana-d5d10a30ceb4a9d6bbb19fe8cbcf878cd841cd53.tar.bz2
Mana-d5d10a30ceb4a9d6bbb19fe8cbcf878cd841cd53.tar.xz
Mana-d5d10a30ceb4a9d6bbb19fe8cbcf878cd841cd53.zip
Support switching characters under eAthena
Diffstat (limited to 'src/net/ea/gamehandler.cpp')
-rw-r--r--src/net/ea/gamehandler.cpp18
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;
}
}