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/gui/windows/tradewindow.cpp | |
parent | 8d12abe6ff4114a04b8fc9549e8f44683fed9e3d (diff) | |
download | manaverse-76e55447563fae6f8d17f2fd90231c81e0b3f927.tar.gz manaverse-76e55447563fae6f8d17f2fd90231c81e0b3f927.tar.bz2 manaverse-76e55447563fae6f8d17f2fd90231c81e0b3f927.tar.xz manaverse-76e55447563fae6f8d17f2fd90231c81e0b3f927.zip |
Add to item field identified.
Diffstat (limited to 'src/gui/windows/tradewindow.cpp')
-rw-r--r-- | src/gui/windows/tradewindow.cpp | 26 |
1 files changed, 19 insertions, 7 deletions
diff --git a/src/gui/windows/tradewindow.cpp b/src/gui/windows/tradewindow.cpp index 1f4325413..34164758c 100644 --- a/src/gui/windows/tradewindow.cpp +++ b/src/gui/windows/tradewindow.cpp @@ -194,26 +194,38 @@ void TradeWindow::addItem(const int id, const bool own, const int quantity, const uint8_t refine, - const unsigned char color) const + const unsigned char color, + const bool identified) const { if (own) - mMyInventory->addItem(id, quantity, refine, color, false, false); + { + mMyInventory->addItem(id, quantity, refine, color, + identified, false, false); + } else - mPartnerInventory->addItem(id, quantity, refine, color, false, false); + { + mPartnerInventory->addItem(id, quantity, refine, color, + identified, false, false); + } } -void TradeWindow::addItem2(const int id, const bool own, const int quantity, - const uint8_t refine, const unsigned char color, +void TradeWindow::addItem2(const int id, + const bool own, + const int quantity, + const uint8_t refine, + const unsigned char color, + const bool identified, const bool equipment) const { if (own) { - mMyInventory->addItem(id, quantity, refine, color, equipment, false); + mMyInventory->addItem(id, quantity, refine, color, + identified, equipment, false); } else { mPartnerInventory->addItem(id, quantity, refine, color, - equipment, false); + identified, equipment, false); } } |