diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-07-14 22:44:37 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-07-14 22:44:37 +0300 |
commit | e1841e31c606f1d97ea54c3f00f3380db814f3d2 (patch) | |
tree | fa9c9b178fe5ba9ca931e67332aef016efa95145 /src/net/ea/chathandler.cpp | |
parent | 72938b640199d03d6092366224d3927d5d2a33b9 (diff) | |
download | manaplus-e1841e31c606f1d97ea54c3f00f3380db814f3d2.tar.gz manaplus-e1841e31c606f1d97ea54c3f00f3380db814f3d2.tar.bz2 manaplus-e1841e31c606f1d97ea54c3f00f3380db814f3d2.tar.xz manaplus-e1841e31c606f1d97ea54c3f00f3380db814f3d2.zip |
Rename readInt8 into readUInt8 because it really read uint8_t.
Diffstat (limited to 'src/net/ea/chathandler.cpp')
-rw-r--r-- | src/net/ea/chathandler.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/net/ea/chathandler.cpp b/src/net/ea/chathandler.cpp index 5c972db6b..4bbff5081 100644 --- a/src/net/ea/chathandler.cpp +++ b/src/net/ea/chathandler.cpp @@ -96,7 +96,7 @@ void ChatHandler::processWhisperResponse(Net::MessageIn &msg) mSentWhispers.pop(); } - const int type = msg.readInt8(); + const uint8_t type = msg.readUInt8(); switch (type) { case 0x00: @@ -283,9 +283,9 @@ void ChatHandler::processBeingChat(Net::MessageIn &msg, if (channels) { chatMsgLength -= 3; - channel = msg.readInt8(); - channel += msg.readInt8(); - channel += msg.readInt8(); + channel = msg.readUInt8(); + channel += msg.readUInt8(); + channel += msg.readUInt8(); } if (chatMsgLength <= 0) @@ -352,9 +352,9 @@ void ChatHandler::processChat(Net::MessageIn &msg, const bool normalChat, if (channels) { chatMsgLength -= 3; - channel = msg.readInt8(); - channel += msg.readInt8(); - channel += msg.readInt8(); + channel = msg.readUInt8(); + channel += msg.readUInt8(); + channel += msg.readUInt8(); } if (chatMsgLength <= 0) { @@ -434,8 +434,8 @@ void ChatHandler::processMVP(Net::MessageIn &msg) const void ChatHandler::processIgnoreAllResponse(Net::MessageIn &msg) const { BLOCK_START("ChatHandler::processIgnoreAllResponse") - const int action = msg.readInt8(); - const int fail = msg.readInt8(); + const uint8_t action = msg.readUInt8(); + const uint8_t fail = msg.readUInt8(); if (!localChatTab) { BLOCK_END("ChatHandler::processIgnoreAllResponse") |