diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-06-16 16:54:10 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-06-16 16:54:10 +0300 |
commit | 2b3b773d1b902eb0797e2d9fc034d63559af87a3 (patch) | |
tree | 58749facbde590e8658e75c56825b0a9b703fcd6 /src/net/eathena/beinghandler.cpp | |
parent | bb58d4020ff5d8ade0fec58d3e311ac211c262ef (diff) | |
download | manaplus-2b3b773d1b902eb0797e2d9fc034d63559af87a3.tar.gz manaplus-2b3b773d1b902eb0797e2d9fc034d63559af87a3.tar.bz2 manaplus-2b3b773d1b902eb0797e2d9fc034d63559af87a3.tar.xz manaplus-2b3b773d1b902eb0797e2d9fc034d63559af87a3.zip |
Move processPvpSet from ea namespace into eathena and tmwa.
Diffstat (limited to 'src/net/eathena/beinghandler.cpp')
-rw-r--r-- | src/net/eathena/beinghandler.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/net/eathena/beinghandler.cpp b/src/net/eathena/beinghandler.cpp index ff12a909d..4ab060b9a 100644 --- a/src/net/eathena/beinghandler.cpp +++ b/src/net/eathena/beinghandler.cpp @@ -1950,4 +1950,19 @@ void BeingHandler::processBeingViewEquipment(Net::MessageIn &msg) } } +void BeingHandler::processPvpSet(Net::MessageIn &msg) +{ + BLOCK_START("BeingHandler::processPvpSet") + const BeingId id = msg.readBeingId("being id"); + const int rank = msg.readInt32("rank"); + msg.readInt32("num"); + if (actorManager) + { + Being *const dstBeing = actorManager->findBeing(id); + if (dstBeing) + dstBeing->setPvpRank(rank); + } + BLOCK_END("BeingHandler::processPvpSet") +} + } // namespace EAthena |