diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-10-21 12:30:17 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-10-21 12:30:17 +0300 |
commit | 40a60a7bb7fd3291fde0a2a689f674a8169c7b64 (patch) | |
tree | 9410a23feea6c6248612afdc8968a1c04306e5b0 /src/net/tmwa/tradehandler.cpp | |
parent | 76e55447563fae6f8d17f2fd90231c81e0b3f927 (diff) | |
download | manaverse-40a60a7bb7fd3291fde0a2a689f674a8169c7b64.tar.gz manaverse-40a60a7bb7fd3291fde0a2a689f674a8169c7b64.tar.bz2 manaverse-40a60a7bb7fd3291fde0a2a689f674a8169c7b64.tar.xz manaverse-40a60a7bb7fd3291fde0a2a689f674a8169c7b64.zip |
Add to item field damaged.
Diffstat (limited to 'src/net/tmwa/tradehandler.cpp')
-rw-r--r-- | src/net/tmwa/tradehandler.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/net/tmwa/tradehandler.cpp b/src/net/tmwa/tradehandler.cpp index 5598d3781..c0ced4c42 100644 --- a/src/net/tmwa/tradehandler.cpp +++ b/src/net/tmwa/tradehandler.cpp @@ -183,12 +183,12 @@ void TradeHandler::processTradeItemAdd(Net::MessageIn &msg) if (serverFeatures->haveItemColors()) { tradeWindow->addItem2(type, false, amount, - refine, identify, true, false); + refine, identify, true, false, false); } else { tradeWindow->addItem2(type, false, amount, - refine, 1, identify != 0, false); + refine, 1, identify != 0, false, false); } } } @@ -219,7 +219,8 @@ void TradeHandler::processTradeItemAddResponse(Net::MessageIn &msg) { tradeWindow->addItem2(item->getId(), true, quantity, item->getRefine(), item->getColor(), - item->getIdentified(), item->isEquipment()); + item->getIdentified(), item->getDamaged(), + item->isEquipment()); } item->increaseQuantity(-quantity); break; |