From 64810ef5b4b3d375e7af0f4fc9ee69e235afa568 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 24 Apr 2015 21:33:13 +0300 Subject: Fix code style. --- src/net/eathena/chathandler.cpp | 2 +- src/net/eathena/loginhandler.cpp | 3 ++- src/net/eathena/playerhandler.cpp | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) (limited to 'src/net/eathena') diff --git a/src/net/eathena/chathandler.cpp b/src/net/eathena/chathandler.cpp index 1ff0e9035..b36bfa2e4 100644 --- a/src/net/eathena/chathandler.cpp +++ b/src/net/eathena/chathandler.cpp @@ -984,7 +984,7 @@ void ChatHandler::processChatRoomSettings(Net::MessageIn &msg) const int chatId = msg.readInt32("chat id"); const uint16_t limit = msg.readInt16("limit"); msg.readInt16("users"); - const uint16_t type = msg.readUInt8("type"); + const uint8_t type = msg.readUInt8("type"); const std::string &title = msg.readString(sz, "title"); ChatObject *const chat = localPlayer->getChat(); if (chat && chat->chatId == chatId) diff --git a/src/net/eathena/loginhandler.cpp b/src/net/eathena/loginhandler.cpp index 6d8e892e9..573b5212c 100644 --- a/src/net/eathena/loginhandler.cpp +++ b/src/net/eathena/loginhandler.cpp @@ -136,7 +136,8 @@ void LoginHandler::disconnect() } void LoginHandler::changePassword(const std::string &restrict oldPassword, - const std::string &restrict newPassword) const + const std::string &restrict newPassword) + const { if (!serverFeatures->haveChangePassword()) return; diff --git a/src/net/eathena/playerhandler.cpp b/src/net/eathena/playerhandler.cpp index aa0cb4f20..2a087ee6a 100644 --- a/src/net/eathena/playerhandler.cpp +++ b/src/net/eathena/playerhandler.cpp @@ -276,6 +276,7 @@ void PlayerHandler::changeAction(const BeingAction::Action &action) const type = 2; break; case BeingAction::STAND: + case BeingAction::PRESTAND: type = 3; break; default: -- cgit v1.2.3-70-g09d2