diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-10-21 01:13:46 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-10-21 01:13:46 +0300 |
commit | 76e55447563fae6f8d17f2fd90231c81e0b3f927 (patch) | |
tree | fa0b2b5daaa50149329f12b7f47b28901d95cc79 /src/net/ea | |
parent | 8d12abe6ff4114a04b8fc9549e8f44683fed9e3d (diff) | |
download | manaplus-76e55447563fae6f8d17f2fd90231c81e0b3f927.tar.gz manaplus-76e55447563fae6f8d17f2fd90231c81e0b3f927.tar.bz2 manaplus-76e55447563fae6f8d17f2fd90231c81e0b3f927.tar.xz manaplus-76e55447563fae6f8d17f2fd90231c81e0b3f927.zip |
Add to item field identified.
Diffstat (limited to 'src/net/ea')
-rw-r--r-- | src/net/ea/inventoryhandler.cpp | 10 | ||||
-rw-r--r-- | src/net/ea/inventoryitem.h | 10 |
2 files changed, 16 insertions, 4 deletions
diff --git a/src/net/ea/inventoryhandler.cpp b/src/net/ea/inventoryhandler.cpp index dbfcf2b98..c38871797 100644 --- a/src/net/ea/inventoryhandler.cpp +++ b/src/net/ea/inventoryhandler.cpp @@ -278,8 +278,14 @@ void InventoryHandler::processPlayerStorageStatus(Net::MessageIn &msg) FOR_EACH (Ea::InventoryItems::const_iterator, it, mInventoryItems) { - mStorage->setItem((*it).slot, (*it).id, (*it).quantity, - (*it).refine, (*it).color, (*it).equip, false); + mStorage->setItem((*it).slot, + (*it).id, + (*it).quantity, + (*it).refine, + (*it).color, + (*it).identified, + (*it).equip, + false); } mInventoryItems.clear(); diff --git a/src/net/ea/inventoryitem.h b/src/net/ea/inventoryitem.h index 0f1e372ee..20ea399d4 100644 --- a/src/net/ea/inventoryitem.h +++ b/src/net/ea/inventoryitem.h @@ -45,16 +45,22 @@ class InventoryItem final int quantity; uint8_t refine; unsigned char color; + bool identified; bool equip; - InventoryItem(const int slot0, const int id0, const int quantity0, - const uint8_t refine0, const unsigned char color0, + InventoryItem(const int slot0, + const int id0, + const int quantity0, + const uint8_t refine0, + const unsigned char color0, + const bool identified0, const bool equip0) : slot(slot0), id(id0), quantity(quantity0), refine(refine0), color(color0), + identified(identified0), equip(equip0) { } |