summaryrefslogtreecommitdiff
path: root/src/net/eathena/chathandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-12 17:07:09 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-12 17:07:09 +0300
commit566ae30ff94caf6c92fc7d64f021b567933f8a60 (patch)
treeeae43b8899444f99a97fdd00bc5df8a117c316e9 /src/net/eathena/chathandler.cpp
parent247418a3ec0b50479c7bac80322202b01527ae61 (diff)
downloadmanaplus-566ae30ff94caf6c92fc7d64f021b567933f8a60.tar.gz
manaplus-566ae30ff94caf6c92fc7d64f021b567933f8a60.tar.bz2
manaplus-566ae30ff94caf6c92fc7d64f021b567933f8a60.tar.xz
manaplus-566ae30ff94caf6c92fc7d64f021b567933f8a60.zip
fix code style.
Diffstat (limited to 'src/net/eathena/chathandler.cpp')
-rw-r--r--src/net/eathena/chathandler.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/net/eathena/chathandler.cpp b/src/net/eathena/chathandler.cpp
index 031222e3e..14c0fcea5 100644
--- a/src/net/eathena/chathandler.cpp
+++ b/src/net/eathena/chathandler.cpp
@@ -252,9 +252,10 @@ void ChatHandler::createChatRoom(const std::string &title,
const bool isPublic)
{
MessageOut outMsg(CMSG_CREAYE_CHAT_ROOM);
- outMsg.writeInt16(password.size() + title.size() + 5, "len");
+ outMsg.writeInt16(static_cast<int16_t>(
+ password.size() + title.size() + 5), "len");
outMsg.writeInt16(static_cast<int16_t>(limit), "limit");
- outMsg.writeInt8(isPublic ? 1 : 0, "public");
+ outMsg.writeInt8(static_cast<int8_t>(isPublic ? 1 : 0), "public");
outMsg.writeString(password, 8, "password");
outMsg.writeString(title, 36, "title");
}
@@ -312,7 +313,7 @@ void ChatHandler::processChat(Net::MessageIn &msg)
void ChatHandler::processGmChat2(Net::MessageIn &msg)
{
- int chatMsgLength = msg.readInt16("len") - 16;
+ const int chatMsgLength = msg.readInt16("len") - 16;
msg.readInt32("font color");
msg.readInt16("font type");
msg.readInt16("font size");