summaryrefslogtreecommitdiff
path: root/src/net/eathena/beinghandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-08-30 17:24:51 +0300
committerAndrei Karas <akaras@inbox.ru>2014-08-30 17:24:51 +0300
commit7e4752efe67acd3668724c2be69b445e2019c268 (patch)
treea5bde9a7883da7096b39b6cf69286bd034f9a58a /src/net/eathena/beinghandler.cpp
parente46cf607a4da55fc77b6b2ea7fca53d69ec6e56b (diff)
downloadmv-7e4752efe67acd3668724c2be69b445e2019c268.tar.gz
mv-7e4752efe67acd3668724c2be69b445e2019c268.tar.bz2
mv-7e4752efe67acd3668724c2be69b445e2019c268.tar.xz
mv-7e4752efe67acd3668724c2be69b445e2019c268.zip
Remove additional parameters from processBeingVisibleOrMove function.
Diffstat (limited to 'src/net/eathena/beinghandler.cpp')
-rw-r--r--src/net/eathena/beinghandler.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/net/eathena/beinghandler.cpp b/src/net/eathena/beinghandler.cpp
index fe153a474..35c183569 100644
--- a/src/net/eathena/beinghandler.cpp
+++ b/src/net/eathena/beinghandler.cpp
@@ -109,7 +109,7 @@ void BeingHandler::handleMessage(Net::MessageIn &msg)
{
case SMSG_BEING_VISIBLE: // changed
case SMSG_BEING_MOVE:
- processBeingVisibleOrMove(msg, msg.getId() == SMSG_BEING_VISIBLE);
+ processBeingVisibleOrMove(msg);
break;
case SMSG_BEING_MOVE2:
@@ -628,12 +628,13 @@ void BeingHandler::processPlayerMoveUpdate(Net::MessageIn &msg,
dstBeing->setMoveTime();
}
-void BeingHandler::processBeingVisibleOrMove(Net::MessageIn &msg,
- const bool visible)
+void BeingHandler::processBeingVisibleOrMove(Net::MessageIn &msg)
{
if (!actorManager)
return;
+ const bool visible = msg.getId() == SMSG_BEING_VISIBLE;
+
if (visible)
msg.readUInt8(); // padding?