summaryrefslogtreecommitdiff
path: root/src/net/eathena
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-03-29 21:55:55 +0300
committerAndrei Karas <akaras@inbox.ru>2013-03-29 21:55:55 +0300
commitcc57dcd0e05a9c37fa4281c0190776a36b277e20 (patch)
treeb39bd665a52337ec4c05d909567c7be30e67fcbc /src/net/eathena
parent2223d15c84a660dd10dc131455416e2f49368409 (diff)
downloadmv-cc57dcd0e05a9c37fa4281c0190776a36b277e20.tar.gz
mv-cc57dcd0e05a9c37fa4281c0190776a36b277e20.tar.bz2
mv-cc57dcd0e05a9c37fa4281c0190776a36b277e20.tar.xz
mv-cc57dcd0e05a9c37fa4281c0190776a36b277e20.zip
fix code style.
Diffstat (limited to 'src/net/eathena')
-rw-r--r--src/net/eathena/beinghandler.cpp2
-rw-r--r--src/net/eathena/generalhandler.cpp4
-rw-r--r--src/net/eathena/generalhandler.h2
3 files changed, 4 insertions, 4 deletions
diff --git a/src/net/eathena/beinghandler.cpp b/src/net/eathena/beinghandler.cpp
index 98c24559a..b026b5e71 100644
--- a/src/net/eathena/beinghandler.cpp
+++ b/src/net/eathena/beinghandler.cpp
@@ -727,7 +727,7 @@ void BeingHandler::processBeingVisibleOrMove(Net::MessageIn &msg,
const uint16_t headTop = msg.readInt16();
const uint16_t headMid = msg.readInt16();
const int hairColor = msg.readInt16();
- const uint16_t shoes = msg.readInt16(); // clothes color - "abused" as shoes
+ const uint16_t shoes = msg.readInt16(); //clothes color - "abused" as shoes
uint16_t gloves;
if (dstBeing->getType() == ActorSprite::MONSTER)
diff --git a/src/net/eathena/generalhandler.cpp b/src/net/eathena/generalhandler.cpp
index ad59ce664..637bd7369 100644
--- a/src/net/eathena/generalhandler.cpp
+++ b/src/net/eathena/generalhandler.cpp
@@ -192,14 +192,14 @@ void GeneralHandler::reload()
mNetwork->disconnect();
static_cast<LoginHandler*>(mLoginHandler.get())->clearWorlds();
- CharServerHandler *charHandler = static_cast<CharServerHandler*>(
+ CharServerHandler *const charHandler = static_cast<CharServerHandler*>(
mCharServerHandler.get());
charHandler->setCharCreateDialog(nullptr);
charHandler->setCharSelectDialog(nullptr);
static_cast<PartyHandler*>(mPartyHandler.get())->reload();
}
-void GeneralHandler::reloadPartially()
+void GeneralHandler::reloadPartially() const
{
static_cast<PartyHandler*>(mPartyHandler.get())->reload();
}
diff --git a/src/net/eathena/generalhandler.h b/src/net/eathena/generalhandler.h
index d2fba855d..a0b65b842 100644
--- a/src/net/eathena/generalhandler.h
+++ b/src/net/eathena/generalhandler.h
@@ -55,7 +55,7 @@ class GeneralHandler final : public MessageHandler,
void clearHandlers() override;
- void reloadPartially() override;
+ void reloadPartially() const override;
void gameStarted() const override;