From 44420a4212085f1899fb382b507dc1a2f6e2001b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 23 Oct 2014 23:58:52 +0300 Subject: Add packet fields comments in homunculushandler. --- src/net/eathena/homunculushandler.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/net/eathena/homunculushandler.cpp') diff --git a/src/net/eathena/homunculushandler.cpp b/src/net/eathena/homunculushandler.cpp index 8796621f3..4cefb8899 100644 --- a/src/net/eathena/homunculushandler.cpp +++ b/src/net/eathena/homunculushandler.cpp @@ -245,7 +245,7 @@ void HomunculusHandler::moveToMaster() const if (!id) return; createOutPacket(CMSG_HOMMERC_MOVE_TO_MASTER); - outMsg.writeInt32(id); + outMsg.writeInt32(id, "homunculus id"); } void HomunculusHandler::move(const int x, const int y) const @@ -254,10 +254,10 @@ void HomunculusHandler::move(const int x, const int y) const if (!id) return; createOutPacket(CMSG_HOMMERC_MOVE_TO); - outMsg.writeInt32(id); + outMsg.writeInt32(id, "homunculus id"); outMsg.writeCoordinates(static_cast(x), static_cast(y), - 0U); + 0U, "position"); } void HomunculusHandler::attack(const int targetId, const bool keep) const @@ -266,9 +266,9 @@ void HomunculusHandler::attack(const int targetId, const bool keep) const if (!id) return; createOutPacket(CMSG_HOMMERC_ATTACK); - outMsg.writeInt32(id); - outMsg.writeInt32(targetId); - outMsg.writeInt8(static_cast(keep ? 1 : 0)); + outMsg.writeInt32(id, "homunculus id"); + outMsg.writeInt32(targetId, "target id"); + outMsg.writeInt8(static_cast(keep ? 1 : 0), "keep"); } void HomunculusHandler::feed() const -- cgit v1.2.3-70-g09d2