summaryrefslogtreecommitdiff
path: root/src/net/chathandler.cpp
diff options
context:
space:
mode:
authorGuillaume Melquiond <guillaume.melquiond@gmail.com>2006-09-02 11:58:35 +0000
committerGuillaume Melquiond <guillaume.melquiond@gmail.com>2006-09-02 11:58:35 +0000
commit2b322bf18d80acb464a9dc1820e581e7204cca1e (patch)
tree6938f1d8f63c8d8c1142b972117b42d2c50d1883 /src/net/chathandler.cpp
parentda43e09d2b043d5c75ad0adb87dd43f1fe36fe8f (diff)
downloadmana-client-2b322bf18d80acb464a9dc1820e581e7204cca1e.tar.gz
mana-client-2b322bf18d80acb464a9dc1820e581e7204cca1e.tar.bz2
mana-client-2b322bf18d80acb464a9dc1820e581e7204cca1e.tar.xz
mana-client-2b322bf18d80acb464a9dc1820e581e7204cca1e.zip
Switched to short IDs for beings.
Diffstat (limited to 'src/net/chathandler.cpp')
-rw-r--r--src/net/chathandler.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/net/chathandler.cpp b/src/net/chathandler.cpp
index 02f99c41..f765f0f4 100644
--- a/src/net/chathandler.cpp
+++ b/src/net/chathandler.cpp
@@ -59,12 +59,12 @@ void ChatHandler::handleMessage(MessageIn &msg)
{
Being *being;
std::string chatMsg;
- Sint16 chatMsgLength;
+ //Sint16 chatMsgLength;
switch (msg.getId())
{
case GPMSG_SAY:
- being = beingManager->findBeing(msg.readLong());
+ being = beingManager->findBeing(msg.readShort());
chatMsg = msg.readString();
if (being)
{
@@ -77,6 +77,7 @@ void ChatHandler::handleMessage(MessageIn &msg)
}
break;
+ /*
// Received speech from being
case SMSG_BEING_CHAT:
chatMsgLength = msg.readShort() - 8;
@@ -131,5 +132,6 @@ void ChatHandler::handleMessage(MessageIn &msg)
msg.readLong(); // id
chatWindow->chatLog("MVP player", BY_SERVER);
break;
+ */
}
}