summaryrefslogtreecommitdiff
path: root/src/gui/windows/tradewindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-10-21 12:30:17 +0300
committerAndrei Karas <akaras@inbox.ru>2014-10-21 12:30:17 +0300
commit40a60a7bb7fd3291fde0a2a689f674a8169c7b64 (patch)
tree9410a23feea6c6248612afdc8968a1c04306e5b0 /src/gui/windows/tradewindow.cpp
parent76e55447563fae6f8d17f2fd90231c81e0b3f927 (diff)
downloadmanaverse-40a60a7bb7fd3291fde0a2a689f674a8169c7b64.tar.gz
manaverse-40a60a7bb7fd3291fde0a2a689f674a8169c7b64.tar.bz2
manaverse-40a60a7bb7fd3291fde0a2a689f674a8169c7b64.tar.xz
manaverse-40a60a7bb7fd3291fde0a2a689f674a8169c7b64.zip
Add to item field damaged.
Diffstat (limited to 'src/gui/windows/tradewindow.cpp')
-rw-r--r--src/gui/windows/tradewindow.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/gui/windows/tradewindow.cpp b/src/gui/windows/tradewindow.cpp
index 34164758c..0ffbcd34a 100644
--- a/src/gui/windows/tradewindow.cpp
+++ b/src/gui/windows/tradewindow.cpp
@@ -195,17 +195,18 @@ void TradeWindow::addItem(const int id,
const int quantity,
const uint8_t refine,
const unsigned char color,
- const bool identified) const
+ const bool identified,
+ const bool damaged) const
{
if (own)
{
mMyInventory->addItem(id, quantity, refine, color,
- identified, false, false);
+ identified, damaged, false, false);
}
else
{
mPartnerInventory->addItem(id, quantity, refine, color,
- identified, false, false);
+ identified, damaged, false, false);
}
}
@@ -215,17 +216,18 @@ void TradeWindow::addItem2(const int id,
const uint8_t refine,
const unsigned char color,
const bool identified,
+ const bool damaged,
const bool equipment) const
{
if (own)
{
mMyInventory->addItem(id, quantity, refine, color,
- identified, equipment, false);
+ identified, damaged, equipment, false);
}
else
{
mPartnerInventory->addItem(id, quantity, refine, color,
- identified, equipment, false);
+ identified, damaged, equipment, false);
}
}