diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-05-23 15:41:41 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-05-23 15:41:41 +0300 |
commit | 2b81fecc1c7c239e4b35312f46952e9b16029b67 (patch) | |
tree | f9dc10a41451e99a76bcfce32509fa48ac851eac /src/net/eathena/inventoryhandler.cpp | |
parent | ba0b0d3891e0ac88cb6313155a456efd0f7c326f (diff) | |
download | mv-2b81fecc1c7c239e4b35312f46952e9b16029b67.tar.gz mv-2b81fecc1c7c239e4b35312f46952e9b16029b67.tar.bz2 mv-2b81fecc1c7c239e4b35312f46952e9b16029b67.tar.xz mv-2b81fecc1c7c239e4b35312f46952e9b16029b67.zip |
Fix packets CMSG_PLAYER_INVENTORY_DROP and CMSG_ITEM_PICKUP.
Diffstat (limited to 'src/net/eathena/inventoryhandler.cpp')
-rw-r--r-- | src/net/eathena/inventoryhandler.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/net/eathena/inventoryhandler.cpp b/src/net/eathena/inventoryhandler.cpp index 8a0670765..44655d9df 100644 --- a/src/net/eathena/inventoryhandler.cpp +++ b/src/net/eathena/inventoryhandler.cpp @@ -124,7 +124,7 @@ void InventoryHandler::dropItem(const Item *const item, const int amount) const outMsg.writeInt16(index, "index"); outMsg.writeInt16(CAST_S16(amount), "amount"); } - if (packetVersion >= 20080827) + else if (packetVersion >= 20080827) { outMsg.writeInt16(0, "unknown"); outMsg.writeInt16(index, "index"); @@ -200,7 +200,7 @@ void InventoryHandler::dropItem(const Item *const item, const int amount) const outMsg.writeInt8(0, "unknown"); outMsg.writeInt16(CAST_S16(amount), "amount"); } - if (packetVersion >= 20041129) + else if (packetVersion >= 20041129) { outMsg.writeInt16(0, "unknown"); outMsg.writeInt16(index, "index"); @@ -223,7 +223,7 @@ void InventoryHandler::dropItem(const Item *const item, const int amount) const outMsg.writeInt8(0, "unknown"); outMsg.writeInt16(CAST_S16(amount), "amount"); } - if (packetVersion >= 20040920) + else if (packetVersion >= 20040920) { outMsg.writeInt32(0, "unknown"); outMsg.writeInt32(0, "unknown"); |