diff options
author | Andrei Karas <akaras@inbox.ru> | 2019-01-24 03:27:03 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2019-01-25 02:39:13 +0300 |
commit | f08d73feaf8ff09b9a7eb3caceeea8e8b1f93ee6 (patch) | |
tree | 871afc399c9ee41bee3a4f989f038b132865a96b /src/net/eathena/inventoryrecv.cpp | |
parent | b8d7c1f17c3c4f2ce951652c0763fccf44b2f1c4 (diff) | |
download | manaplus-f08d73feaf8ff09b9a7eb3caceeea8e8b1f93ee6.tar.gz manaplus-f08d73feaf8ff09b9a7eb3caceeea8e8b1f93ee6.tar.bz2 manaplus-f08d73feaf8ff09b9a7eb3caceeea8e8b1f93ee6.tar.xz manaplus-f08d73feaf8ff09b9a7eb3caceeea8e8b1f93ee6.zip |
Add packet SMSG_INVENTORY_EXPANSION_INFO 0x0b18
Diffstat (limited to 'src/net/eathena/inventoryrecv.cpp')
-rw-r--r-- | src/net/eathena/inventoryrecv.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/net/eathena/inventoryrecv.cpp b/src/net/eathena/inventoryrecv.cpp index ddf4a5925..388a8fe10 100644 --- a/src/net/eathena/inventoryrecv.cpp +++ b/src/net/eathena/inventoryrecv.cpp @@ -1672,4 +1672,16 @@ void InventoryRecv::processShowItemPreview2(Net::MessageIn &msg) } } +void InventoryRecv::processInventoryExpansionInfo(Net::MessageIn &msg) +{ + UNIMPLEMENTEDPACKET; + const int newSize = msg.readInt16("expansion size") + + settings.fixedInventorySize; + Inventory *const inv = PlayerInfo::getInventory(); + if (inv != nullptr) + { + inv->resize(newSize); + } +} + } // namespace EAthena |