From 4d03a4b3e2c1a6571f41e75239d6767dcf44e918 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 30 Aug 2014 17:29:50 +0300 Subject: Remove additional parameters from processBeingChatLook function. --- src/net/tmwa/beinghandler.cpp | 7 +++---- src/net/tmwa/beinghandler.h | 3 +-- 2 files changed, 4 insertions(+), 6 deletions(-) (limited to 'src/net/tmwa') diff --git a/src/net/tmwa/beinghandler.cpp b/src/net/tmwa/beinghandler.cpp index a9c98d295..b66ad64be 100644 --- a/src/net/tmwa/beinghandler.cpp +++ b/src/net/tmwa/beinghandler.cpp @@ -154,8 +154,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: @@ -254,8 +253,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 { BLOCK_START("BeingHandler::processBeingChangeLook") if (!actorManager) @@ -287,6 +285,7 @@ void BeingHandler::processBeingChangeLook(Net::MessageIn &msg, int16_t id = 0; int id2 = 0; const std::string color; + const bool look2 = msg.getId() == SMSG_BEING_CHANGE_LOOKS2; if (!look2) { diff --git a/src/net/tmwa/beinghandler.h b/src/net/tmwa/beinghandler.h index 870ea4a1a..235b4da9d 100644 --- a/src/net/tmwa/beinghandler.h +++ b/src/net/tmwa/beinghandler.h @@ -44,8 +44,7 @@ class BeingHandler final : public MessageHandler, public Ea::BeingHandler void undress(Being *const being) const override final; protected: - void processBeingChangeLook(Net::MessageIn &msg, - const bool look2) const; + void processBeingChangeLook(Net::MessageIn &msg) const; void processBeingVisibleOrMove(Net::MessageIn &msg); -- cgit v1.2.3-70-g09d2