diff options
author | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2006-09-02 11:58:35 +0000 |
---|---|---|
committer | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2006-09-02 11:58:35 +0000 |
commit | 2b322bf18d80acb464a9dc1820e581e7204cca1e (patch) | |
tree | 6938f1d8f63c8d8c1142b972117b42d2c50d1883 /src/net/chathandler.cpp | |
parent | da43e09d2b043d5c75ad0adb87dd43f1fe36fe8f (diff) | |
download | mana-2b322bf18d80acb464a9dc1820e581e7204cca1e.tar.gz mana-2b322bf18d80acb464a9dc1820e581e7204cca1e.tar.bz2 mana-2b322bf18d80acb464a9dc1820e581e7204cca1e.tar.xz mana-2b322bf18d80acb464a9dc1820e581e7204cca1e.zip |
Switched to short IDs for beings.
Diffstat (limited to 'src/net/chathandler.cpp')
-rw-r--r-- | src/net/chathandler.cpp | 6 |
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; + */ } } |