summaryrefslogtreecommitdiff
path: root/src/net/tmwa/chathandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-26 23:25:32 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-26 23:25:32 +0300
commit3ed2e647a7ec634a91a32e7ac493c9f2b6d693b0 (patch)
treed7f1400583c5bc6916129e05fc5e0907d1081ca9 /src/net/tmwa/chathandler.cpp
parent6112e911a5b702fa1a9fca7bb6300f0195cbe685 (diff)
downloadplus-3ed2e647a7ec634a91a32e7ac493c9f2b6d693b0.tar.gz
plus-3ed2e647a7ec634a91a32e7ac493c9f2b6d693b0.tar.bz2
plus-3ed2e647a7ec634a91a32e7ac493c9f2b6d693b0.tar.xz
plus-3ed2e647a7ec634a91a32e7ac493c9f2b6d693b0.zip
Fix code style.
Diffstat (limited to 'src/net/tmwa/chathandler.cpp')
-rw-r--r--src/net/tmwa/chathandler.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/net/tmwa/chathandler.cpp b/src/net/tmwa/chathandler.cpp
index c2ffca0e3..73e651da2 100644
--- a/src/net/tmwa/chathandler.cpp
+++ b/src/net/tmwa/chathandler.cpp
@@ -30,7 +30,6 @@
#include "gui/windows/chatwindow.h"
-#include "net/net.h"
#include "net/serverfeatures.h"
#include "net/tmwa/messageout.h"
@@ -282,7 +281,7 @@ void ChatHandler::battleTalk(const std::string &text A_UNUSED) const
void ChatHandler::processChat(Net::MessageIn &msg)
{
BLOCK_START("ChatHandler::processChat")
- int chatMsgLength = msg.readInt16("len") - 4;
+ const int chatMsgLength = msg.readInt16("len") - 4;
if (chatMsgLength <= 0)
{
BLOCK_END("ChatHandler::processChat")
@@ -295,7 +294,7 @@ void ChatHandler::processChat(Net::MessageIn &msg)
void ChatHandler::processChat2(Net::MessageIn &msg)
{
BLOCK_START("ChatHandler::processChat")
- int chatMsgLength = msg.readInt16("len") - 4 - 3;
+ const int chatMsgLength = msg.readInt16("len") - 4 - 3;
std::string channel;
channel = msg.readUInt8("channel byte 0");
channel += msg.readUInt8("channel byte 1");