diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-01-25 01:10:09 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-01-25 01:10:09 +0300 |
commit | cc2c18c2b41e5409a0762b538568b41e9147c6e9 (patch) | |
tree | 473c763012a3a99fbaa4873e25332b6a71d504d1 /src/net | |
parent | e94119a81652c829c31f52cbc1ae0bce586f1483 (diff) | |
download | manaverse-cc2c18c2b41e5409a0762b538568b41e9147c6e9.tar.gz manaverse-cc2c18c2b41e5409a0762b538568b41e9147c6e9.tar.bz2 manaverse-cc2c18c2b41e5409a0762b538568b41e9147c6e9.tar.xz manaverse-cc2c18c2b41e5409a0762b538568b41e9147c6e9.zip |
Add weight bar into cart window.
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/eathena/inventoryhandler.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/net/eathena/inventoryhandler.cpp b/src/net/eathena/inventoryhandler.cpp index 316617be1..ff0e8eaaf 100644 --- a/src/net/eathena/inventoryhandler.cpp +++ b/src/net/eathena/inventoryhandler.cpp @@ -26,6 +26,8 @@ #include "enums/equipslot.h" +#include "enums/being/attributes.h" + #include "being/localplayer.h" #include "listeners/arrowslistener.h" @@ -764,8 +766,10 @@ void InventoryHandler::processCartInfo(Net::MessageIn &msg) { msg.readInt16("cart items used"); const int size = msg.readInt16("max cart items"); - msg.readInt32("cart weight"); - msg.readInt32("max cart weight"); + PlayerInfo::setAttribute(Attributes::CART_TOTAL_WEIGHT, + msg.readInt32("cart weight")); + PlayerInfo::setAttribute(Attributes::CART_MAX_WEIGHT, + msg.readInt32("max cart weight")); if (mCartItems.empty()) return; |