diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-30 23:12:26 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-30 23:12:26 +0300 |
commit | afb92b74a224a56ea51a6e8053a0dc69ee0601ff (patch) | |
tree | 8361c17f9bf76b6bc711a3f1d9d014ef05c834f4 /src/net/eathena | |
parent | f493b31b59c79f8923d23634b7e2450c4df7019b (diff) | |
download | plus-afb92b74a224a56ea51a6e8053a0dc69ee0601ff.tar.gz plus-afb92b74a224a56ea51a6e8053a0dc69ee0601ff.tar.bz2 plus-afb92b74a224a56ea51a6e8053a0dc69ee0601ff.tar.xz plus-afb92b74a224a56ea51a6e8053a0dc69ee0601ff.zip |
Add manner field to beings.
Diffstat (limited to 'src/net/eathena')
-rw-r--r-- | src/net/eathena/beinghandler.cpp | 12 | ||||
-rw-r--r-- | src/net/eathena/charserverhandler.cpp | 2 |
2 files changed, 7 insertions, 7 deletions
diff --git a/src/net/eathena/beinghandler.cpp b/src/net/eathena/beinghandler.cpp index 1bd20c0e3..c92de3651 100644 --- a/src/net/eathena/beinghandler.cpp +++ b/src/net/eathena/beinghandler.cpp @@ -614,7 +614,7 @@ void BeingHandler::processPlayerUpdate1(Net::MessageIn &msg) const } msg.readInt16("emblem"); - msg.readInt16("manner"); + dstBeing->setManner(msg.readInt16("manner")); dstBeing->setStatusEffectBlock(32, msg.readInt16("opt3")); dstBeing->setKarma(msg.readUInt8("karma")); dstBeing->setGender(Being::intToGender(msg.readUInt8("gender"))); @@ -739,7 +739,7 @@ void BeingHandler::processPlayerUpdate2(Net::MessageIn &msg) const } msg.readInt16("emblem"); - msg.readInt16("manner"); + dstBeing->setManner(msg.readInt16("manner")); dstBeing->setStatusEffectBlock(32, msg.readInt16("opt3")); dstBeing->setKarma(msg.readUInt8("karma")); dstBeing->setGender(Being::intToGender(msg.readUInt8("gender"))); @@ -864,7 +864,7 @@ void BeingHandler::processPlayerMove(Net::MessageIn &msg) const } msg.readInt16("emblem"); - msg.readInt16("manner"); + dstBeing->setManner(msg.readInt16("manner")); dstBeing->setStatusEffectBlock(32, msg.readInt16("opt3")); dstBeing->setKarma(msg.readUInt8("karma")); dstBeing->setGender(Being::intToGender(msg.readUInt8("gender"))); @@ -1031,7 +1031,7 @@ void BeingHandler::processBeingVisible(Net::MessageIn &msg) msg.readInt16("robe"); msg.readInt32("guild id"); msg.readInt16("guild emblem"); - msg.readInt16("manner"); + dstBeing->setManner(msg.readInt16("manner")); dstBeing->setStatusEffectBlock(32, static_cast<uint16_t>( msg.readInt32("opt3"))); dstBeing->setKarma(msg.readUInt8("karma")); @@ -1196,7 +1196,7 @@ void BeingHandler::processBeingMove(Net::MessageIn &msg) msg.readInt16("robe"); msg.readInt32("guild id"); msg.readInt16("guild emblem"); - msg.readInt16("manner"); + dstBeing->setManner(msg.readInt16("manner")); dstBeing->setStatusEffectBlock(32, static_cast<uint16_t>( msg.readInt32("opt3"))); dstBeing->setKarma(msg.readUInt8("karma")); @@ -1363,7 +1363,7 @@ void BeingHandler::processBeingSpawn(Net::MessageIn &msg) msg.readInt16("robe"); msg.readInt32("guild id"); msg.readInt16("guild emblem"); - msg.readInt16("manner"); + dstBeing->setManner(msg.readInt16("manner")); dstBeing->setStatusEffectBlock(32, static_cast<uint16_t>( msg.readInt32("opt3"))); dstBeing->setKarma(msg.readUInt8("karma")); diff --git a/src/net/eathena/charserverhandler.cpp b/src/net/eathena/charserverhandler.cpp index b2ba2da08..0b48e8d80 100644 --- a/src/net/eathena/charserverhandler.cpp +++ b/src/net/eathena/charserverhandler.cpp @@ -162,7 +162,7 @@ void CharServerHandler::readPlayerData(Net::MessageIn &msg, msg.readInt32("option"); tempPlayer->setKarma(msg.readInt32("karma")); - msg.readInt32("manner"); + tempPlayer->setManner(msg.readInt32("manner")); msg.readInt16("left points"); data.mAttributes[Attributes::HP] = msg.readInt16("hp"); |