summaryrefslogtreecommitdiff
path: root/src/net/loginhandler.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2006-08-20 16:14:12 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2006-08-20 16:14:12 +0000
commit2fe42d32c6d368a66586c605cc1b38ee8d85ed1d (patch)
tree705a76dffde116ddbffb5cba9aa45e4b0700f280 /src/net/loginhandler.cpp
parent292f3e50a59b06bf129893b352466d7d54fa3d71 (diff)
downloadmana-2fe42d32c6d368a66586c605cc1b38ee8d85ed1d.tar.gz
mana-2fe42d32c6d368a66586c605cc1b38ee8d85ed1d.tar.bz2
mana-2fe42d32c6d368a66586c605cc1b38ee8d85ed1d.tar.xz
mana-2fe42d32c6d368a66586c605cc1b38ee8d85ed1d.zip
Changed MessageHandler::handleMessage to take a reference instead of a pointer.
Removed unused Packet class. Added stub for handling GPMSG_BEING_ENTER.
Diffstat (limited to 'src/net/loginhandler.cpp')
-rw-r--r--src/net/loginhandler.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/net/loginhandler.cpp b/src/net/loginhandler.cpp
index 4790d7d1..700fb75a 100644
--- a/src/net/loginhandler.cpp
+++ b/src/net/loginhandler.cpp
@@ -41,13 +41,13 @@ LoginHandler::LoginHandler()
handledMessages = _messages;
}
-void LoginHandler::handleMessage(MessageIn *msg)
+void LoginHandler::handleMessage(MessageIn &msg)
{
- switch (msg->getId())
+ switch (msg.getId())
{
case APMSG_LOGIN_RESPONSE:
{
- int errMsg = msg->readByte();
+ int errMsg = msg.readByte();
// Successful login
if (errMsg == ERRMSG_OK)
{
@@ -79,7 +79,7 @@ void LoginHandler::handleMessage(MessageIn *msg)
break;
case APMSG_REGISTER_RESPONSE:
{
- int errMsg = msg->readByte();
+ int errMsg = msg.readByte();
// Successful registration
if (errMsg == ERRMSG_OK)
{