summaryrefslogtreecommitdiff
path: root/src/net/tmwa
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-30 23:12:26 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-30 23:12:26 +0300
commitafb92b74a224a56ea51a6e8053a0dc69ee0601ff (patch)
tree8361c17f9bf76b6bc711a3f1d9d014ef05c834f4 /src/net/tmwa
parentf493b31b59c79f8923d23634b7e2450c4df7019b (diff)
downloadmv-afb92b74a224a56ea51a6e8053a0dc69ee0601ff.tar.gz
mv-afb92b74a224a56ea51a6e8053a0dc69ee0601ff.tar.bz2
mv-afb92b74a224a56ea51a6e8053a0dc69ee0601ff.tar.xz
mv-afb92b74a224a56ea51a6e8053a0dc69ee0601ff.zip
Add manner field to beings.
Diffstat (limited to 'src/net/tmwa')
-rw-r--r--src/net/tmwa/beinghandler.cpp10
-rw-r--r--src/net/tmwa/charserverhandler.cpp2
2 files changed, 6 insertions, 6 deletions
diff --git a/src/net/tmwa/beinghandler.cpp b/src/net/tmwa/beinghandler.cpp
index 6d19dbe72..a996f97da 100644
--- a/src/net/tmwa/beinghandler.cpp
+++ b/src/net/tmwa/beinghandler.cpp
@@ -554,7 +554,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"));
// reserving bit for future usage
@@ -705,7 +705,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"));
// reserving bit for future usage
@@ -856,7 +856,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"));
// reserving bit for future usage
@@ -1127,7 +1127,7 @@ void BeingHandler::processBeingVisible(Net::MessageIn &msg)
msg.readInt16("guild emblem");
}
- msg.readInt16("manner");
+ dstBeing->setManner(msg.readInt16("manner"));
dstBeing->setStatusEffectBlock(32, msg.readInt16("opt3"));
if (serverFeatures->haveMonsterAttackRange()
&& dstBeing->getType() == ActorType::Monster)
@@ -1331,7 +1331,7 @@ void BeingHandler::processBeingMove(Net::MessageIn &msg)
msg.readInt16("guild emblem");
}
- msg.readInt16("manner");
+ dstBeing->setManner(msg.readInt16("manner"));
dstBeing->setStatusEffectBlock(32, msg.readInt16("opt3"));
if (serverFeatures->haveMonsterAttackRange()
&& dstBeing->getType() == ActorType::Monster)
diff --git a/src/net/tmwa/charserverhandler.cpp b/src/net/tmwa/charserverhandler.cpp
index 8c98c56e2..adf82cf34 100644
--- a/src/net/tmwa/charserverhandler.cpp
+++ b/src/net/tmwa/charserverhandler.cpp
@@ -160,7 +160,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("character points left");
data.mAttributes[Attributes::HP] = msg.readInt16("hp");