diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-08-30 17:29:50 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-08-30 17:29:50 +0300 |
commit | 4d03a4b3e2c1a6571f41e75239d6767dcf44e918 (patch) | |
tree | 47dc81a74b34f77203ba77ab5564c97133c27189 /src/net/eathena/beinghandler.cpp | |
parent | 7e4752efe67acd3668724c2be69b445e2019c268 (diff) | |
download | mv-4d03a4b3e2c1a6571f41e75239d6767dcf44e918.tar.gz mv-4d03a4b3e2c1a6571f41e75239d6767dcf44e918.tar.bz2 mv-4d03a4b3e2c1a6571f41e75239d6767dcf44e918.tar.xz mv-4d03a4b3e2c1a6571f41e75239d6767dcf44e918.zip |
Remove additional parameters from processBeingChatLook function.
Diffstat (limited to 'src/net/eathena/beinghandler.cpp')
-rw-r--r-- | src/net/eathena/beinghandler.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/net/eathena/beinghandler.cpp b/src/net/eathena/beinghandler.cpp index 35c183569..54626ce3c 100644 --- a/src/net/eathena/beinghandler.cpp +++ b/src/net/eathena/beinghandler.cpp @@ -146,8 +146,7 @@ void BeingHandler::handleMessage(Net::MessageIn &msg) case SMSG_BEING_CHANGE_LOOKS: case SMSG_BEING_CHANGE_LOOKS2: - processBeingChangeLook(msg, - msg.getId() == SMSG_BEING_CHANGE_LOOKS2); + processBeingChangeLook(msg); break; case SMSG_BEING_NAME_RESPONSE: @@ -245,8 +244,7 @@ void BeingHandler::undress(Being *const being) const // being->setSprite(SPRITE_WEAPON, 0, "", true); } -void BeingHandler::processBeingChangeLook(Net::MessageIn &msg, - const bool look2) const +void BeingHandler::processBeingChangeLook(Net::MessageIn &msg) const { if (!actorManager) return; @@ -271,6 +269,7 @@ void BeingHandler::processBeingChangeLook(Net::MessageIn &msg, int id = 0; unsigned int id2 = 0U; const std::string color; + const bool look2 = msg.getId() == SMSG_BEING_CHANGE_LOOKS2; if (!look2) { |