summaryrefslogtreecommitdiff
path: root/src/net/eathena/beinghandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-01 02:19:31 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-06 01:18:54 +0300
commit539f7386d5677dbbe30b6289af6f35c042ccf081 (patch)
tree48c21d1c1072c6a9b9ebe1c37561520604ba543e /src/net/eathena/beinghandler.cpp
parentcfe330196739006e2718a02cf64210a59930fe98 (diff)
downloadplus-539f7386d5677dbbe30b6289af6f35c042ccf081.tar.gz
plus-539f7386d5677dbbe30b6289af6f35c042ccf081.tar.bz2
plus-539f7386d5677dbbe30b6289af6f35c042ccf081.tar.xz
plus-539f7386d5677dbbe30b6289af6f35c042ccf081.zip
add fields comments in processBeingChangeLook.
Diffstat (limited to 'src/net/eathena/beinghandler.cpp')
-rw-r--r--src/net/eathena/beinghandler.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/net/eathena/beinghandler.cpp b/src/net/eathena/beinghandler.cpp
index 36c3de56c..7f42306e9 100644
--- a/src/net/eathena/beinghandler.cpp
+++ b/src/net/eathena/beinghandler.cpp
@@ -246,11 +246,12 @@ void BeingHandler::processBeingChangeLook(Net::MessageIn &msg) const
* 16 bit value will be 0.
*/
- Being *const dstBeing = actorManager->findBeing(msg.readInt32());
+ Being *const dstBeing = actorManager->findBeing(
+ msg.readInt32("accound id"));
if (!dstBeing)
return;
- const uint8_t type = msg.readUInt8();
+ const uint8_t type = msg.readUInt8("type");
int id = 0;
unsigned int id2 = 0U;
const std::string color;
@@ -263,9 +264,9 @@ void BeingHandler::processBeingChangeLook(Net::MessageIn &msg) const
}
else
{ // SMSG_BEING_CHANGE_LOOKS2
- id = msg.readInt16();
+ id = msg.readInt16("id1");
if (type == 2)
- id2 = msg.readInt16();
+ id2 = msg.readInt16("id2");
else
id2 = 1;
// color.clear();