diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-10-24 00:53:04 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-10-24 00:53:04 +0300 |
commit | e2357924e81c3239e5ca2af0afda2a770acb8288 (patch) | |
tree | 01f6974e7374441d78bc0eec8c9025617945541a /src/net/eathena/mercenaryhandler.cpp | |
parent | 44420a4212085f1899fb382b507dc1a2f6e2001b (diff) | |
download | manaverse-e2357924e81c3239e5ca2af0afda2a770acb8288.tar.gz manaverse-e2357924e81c3239e5ca2af0afda2a770acb8288.tar.bz2 manaverse-e2357924e81c3239e5ca2af0afda2a770acb8288.tar.xz manaverse-e2357924e81c3239e5ca2af0afda2a770acb8288.zip |
Add packet fields comments in mercenaryhandler.
Diffstat (limited to 'src/net/eathena/mercenaryhandler.cpp')
-rw-r--r-- | src/net/eathena/mercenaryhandler.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/net/eathena/mercenaryhandler.cpp b/src/net/eathena/mercenaryhandler.cpp index aa6152035..89e274252 100644 --- a/src/net/eathena/mercenaryhandler.cpp +++ b/src/net/eathena/mercenaryhandler.cpp @@ -189,7 +189,7 @@ void MercenaryHandler::moveToMaster() const if (!id) return; createOutPacket(CMSG_HOMMERC_MOVE_TO_MASTER); - outMsg.writeInt32(id); + outMsg.writeInt32(id, "mercenary id"); } void MercenaryHandler::move(const int x, const int y) const @@ -198,21 +198,21 @@ void MercenaryHandler::move(const int x, const int y) const if (!id) return; createOutPacket(CMSG_HOMMERC_MOVE_TO); - outMsg.writeInt32(id); + outMsg.writeInt32(id, "mercenary id"); outMsg.writeCoordinates(static_cast<uint16_t>(x), static_cast<uint16_t>(y), - 0U); + 0U, "position"); } void MercenaryHandler::attack(const int targetId, const bool keep) const { - const int id = PlayerInfo::getHomunculusId(); + const int id = PlayerInfo::getMercenaryId(); if (!id) return; createOutPacket(CMSG_HOMMERC_ATTACK); - outMsg.writeInt32(id); - outMsg.writeInt32(targetId); - outMsg.writeInt8(static_cast<int8_t>(keep ? 1 : 0)); + outMsg.writeInt32(id, "mercenary id"); + outMsg.writeInt32(targetId, "target id"); + outMsg.writeInt8(static_cast<int8_t>(keep ? 1 : 0), "keep"); } } // namespace EAthena |