summaryrefslogtreecommitdiff
path: root/src/net/eathena/inventoryhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-10-23 12:43:12 +0300
committerAndrei Karas <akaras@inbox.ru>2014-10-23 19:46:19 +0300
commit1bfa2fef834bf52155b25e79bc4742363ae1ceac (patch)
treea65a94f40a9e1d3c70ad287b2b12947d9e77b33e /src/net/eathena/inventoryhandler.cpp
parent54d87dc0e28e1e031db1f2fdb18407a0bf15b3ef (diff)
downloadManaVerse-1bfa2fef834bf52155b25e79bc4742363ae1ceac.tar.gz
ManaVerse-1bfa2fef834bf52155b25e79bc4742363ae1ceac.tar.bz2
ManaVerse-1bfa2fef834bf52155b25e79bc4742363ae1ceac.tar.xz
ManaVerse-1bfa2fef834bf52155b25e79bc4742363ae1ceac.zip
Add packet fields comments in inventoryhandler.
Diffstat (limited to 'src/net/eathena/inventoryhandler.cpp')
-rw-r--r--src/net/eathena/inventoryhandler.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/net/eathena/inventoryhandler.cpp b/src/net/eathena/inventoryhandler.cpp
index 74b8072c8..a7315c506 100644
--- a/src/net/eathena/inventoryhandler.cpp
+++ b/src/net/eathena/inventoryhandler.cpp
@@ -197,7 +197,7 @@ void InventoryHandler::unequipItem(const Item *const item) const
createOutPacket(CMSG_PLAYER_UNEQUIP);
outMsg.writeInt16(static_cast<int16_t>(
- item->getInvIndex() + INVENTORY_OFFSET));
+ item->getInvIndex() + INVENTORY_OFFSET), "index");
}
void InventoryHandler::useItem(const Item *const item) const
@@ -207,8 +207,8 @@ void InventoryHandler::useItem(const Item *const item) const
createOutPacket(CMSG_PLAYER_INVENTORY_USE);
outMsg.writeInt16(static_cast<int16_t>(
- item->getInvIndex() + INVENTORY_OFFSET));
- outMsg.writeInt32(item->getId()); // unused
+ item->getInvIndex() + INVENTORY_OFFSET), "index");
+ outMsg.writeInt32(item->getId(), "unused");
}
void InventoryHandler::dropItem(const Item *const item, const int amount) const
@@ -218,8 +218,8 @@ void InventoryHandler::dropItem(const Item *const item, const int amount) const
createOutPacket(CMSG_PLAYER_INVENTORY_DROP);
outMsg.writeInt16(static_cast<int16_t>(
- item->getInvIndex() + INVENTORY_OFFSET));
- outMsg.writeInt16(static_cast<int16_t>(amount));
+ item->getInvIndex() + INVENTORY_OFFSET), "index");
+ outMsg.writeInt16(static_cast<int16_t>(amount), "amount");
}
void InventoryHandler::closeStorage(const int type A_UNUSED) const
@@ -260,8 +260,8 @@ void InventoryHandler::moveItem2(const int source,
if (packet)
{
createOutPacket(packet);
- outMsg.writeInt16(static_cast<int16_t>(slot + offset));
- outMsg.writeInt32(amount);
+ outMsg.writeInt16(static_cast<int16_t>(slot + offset), "index");
+ outMsg.writeInt32(amount, "amount");
}
}