summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-01-25 01:10:09 +0300
committerAndrei Karas <akaras@inbox.ru>2015-01-25 01:10:09 +0300
commitcc2c18c2b41e5409a0762b538568b41e9147c6e9 (patch)
tree473c763012a3a99fbaa4873e25332b6a71d504d1 /src/net
parente94119a81652c829c31f52cbc1ae0bce586f1483 (diff)
downloadmv-cc2c18c2b41e5409a0762b538568b41e9147c6e9.tar.gz
mv-cc2c18c2b41e5409a0762b538568b41e9147c6e9.tar.bz2
mv-cc2c18c2b41e5409a0762b538568b41e9147c6e9.tar.xz
mv-cc2c18c2b41e5409a0762b538568b41e9147c6e9.zip
Add weight bar into cart window.
Diffstat (limited to 'src/net')
-rw-r--r--src/net/eathena/inventoryhandler.cpp8
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;