diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-04-08 19:37:48 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-04-08 19:37:48 +0300 |
commit | c8007693768d599726119b89cff5ab6aa1cf000d (patch) | |
tree | 0beda4b49c5c30a254046d2cba9b54e983e0eb58 /src/net/eathena | |
parent | 661ae1c08d0cab92011e1913e587901c51aee5fe (diff) | |
download | plus-c8007693768d599726119b89cff5ab6aa1cf000d.tar.gz plus-c8007693768d599726119b89cff5ab6aa1cf000d.tar.bz2 plus-c8007693768d599726119b89cff5ab6aa1cf000d.tar.xz plus-c8007693768d599726119b89cff5ab6aa1cf000d.zip |
Fix code style.
Diffstat (limited to 'src/net/eathena')
-rw-r--r-- | src/net/eathena/inventoryhandler.h | 3 | ||||
-rw-r--r-- | src/net/eathena/inventoryrecv.cpp | 1 | ||||
-rw-r--r-- | src/net/eathena/vendingrecv.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/net/eathena/inventoryhandler.h b/src/net/eathena/inventoryhandler.h index 8f144f57e..786917970 100644 --- a/src/net/eathena/inventoryhandler.h +++ b/src/net/eathena/inventoryhandler.h @@ -71,7 +71,8 @@ class InventoryHandler final : public Ea::InventoryHandler void identifyItem(const Item *const item) const override final; - void mergeItemsAck(const std::vector<Item*> &items) const override final; + void mergeItemsAck(const std::vector<Item*> &items) const + override final; void mergetItemsCancel() const override final; diff --git a/src/net/eathena/inventoryrecv.cpp b/src/net/eathena/inventoryrecv.cpp index c3f752a6d..5ba7a81b3 100644 --- a/src/net/eathena/inventoryrecv.cpp +++ b/src/net/eathena/inventoryrecv.cpp @@ -1057,7 +1057,6 @@ void InventoryRecv::processPlayerCartEquip(Net::MessageIn &msg) void InventoryRecv::processPlayerCartItems(Net::MessageIn &msg) { -//+++ BLOCK_START("InventoryRecv::processPlayerCartItems") Ea::InventoryRecv::mInventoryItems.clear(); diff --git a/src/net/eathena/vendingrecv.cpp b/src/net/eathena/vendingrecv.cpp index 4c609a766..4a342d8eb 100644 --- a/src/net/eathena/vendingrecv.cpp +++ b/src/net/eathena/vendingrecv.cpp @@ -89,7 +89,7 @@ void VendingRecv::processItemsList(Net::MessageIn &msg) if (msg.getVersion() >= 20100105) offset += 4; - const int count = (msg.readInt16("len") - offset) / 22; + const int count = (msg.readInt16("len") - offset) / packetLen; const BeingId id = msg.readBeingId("id"); const Being *const being = actorManager->findBeing(id); if (!being) |