diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-08-22 15:45:34 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-08-22 15:45:34 +0300 |
commit | dc4a8bf50b6285079902da824202d29d767b90ec (patch) | |
tree | 2249c7269fab6b9ff328510d7af1578904f4df40 /src/net/eathena/itemhandler.cpp | |
parent | da05d9dd98315378bdded216184294f376643191 (diff) | |
download | plus-dc4a8bf50b6285079902da824202d29d767b90ec.tar.gz plus-dc4a8bf50b6285079902da824202d29d767b90ec.tar.bz2 plus-dc4a8bf50b6285079902da824202d29d767b90ec.tar.xz plus-dc4a8bf50b6285079902da824202d29d767b90ec.zip |
Read damaged attribute from all packets.
Diffstat (limited to 'src/net/eathena/itemhandler.cpp')
-rw-r--r-- | src/net/eathena/itemhandler.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/net/eathena/itemhandler.cpp b/src/net/eathena/itemhandler.cpp index 6bb541649..5ce7a1c6e 100644 --- a/src/net/eathena/itemhandler.cpp +++ b/src/net/eathena/itemhandler.cpp @@ -26,6 +26,8 @@ #include "itemcolormanager.h" #include "logger.h" +#include "enums/simpletypes/damaged.h" + #include "net/eathena/protocol.h" #include "debug.h" @@ -123,7 +125,7 @@ void ItemHandler::processItemDropped2(Net::MessageIn &msg) const int itemType = msg.readUInt8("type"); const Identified identified = fromInt( msg.readUInt8("identify"), Identified); - msg.readUInt8("attribute"); + const Damaged damaged = fromBool(msg.readUInt8("attribute"), Damaged); const uint8_t refine = msg.readUInt8("refine"); int cards[4]; for (int f = 0; f < 4; f++) @@ -208,7 +210,7 @@ void ItemHandler::processItemVisible2(Net::MessageIn &msg) const int itemType = msg.readUInt8("type"); const Identified identified = fromInt( msg.readUInt8("identify"), Identified); - msg.readUInt8("attribute"); + const Damaged damaged = fromBool(msg.readUInt8("attribute"), Damaged); const uint8_t refine = msg.readUInt8("refine"); int cards[4]; for (int f = 0; f < 4; f++) |