diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-02-27 03:36:52 +0200 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-02-27 03:36:52 +0200 |
commit | 1b57518ca97c670174f89c5af28659b6ad0c3d42 (patch) | |
tree | 369c6e2f8cfbd791f252de68c0f85bd1af47c351 /src/net/manaserv/tradehandler.cpp | |
parent | 037248d338291529e0c044a80ca8345abe05dd2b (diff) | |
download | plus-1b57518ca97c670174f89c5af28659b6ad0c3d42.tar.gz plus-1b57518ca97c670174f89c5af28659b6ad0c3d42.tar.bz2 plus-1b57518ca97c670174f89c5af28659b6ad0c3d42.tar.xz plus-1b57518ca97c670174f89c5af28659b6ad0c3d42.zip |
Implement receiving item color from server.
Diffstat (limited to 'src/net/manaserv/tradehandler.cpp')
-rw-r--r-- | src/net/manaserv/tradehandler.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net/manaserv/tradehandler.cpp b/src/net/manaserv/tradehandler.cpp index 18a60a424..cd3a21aca 100644 --- a/src/net/manaserv/tradehandler.cpp +++ b/src/net/manaserv/tradehandler.cpp @@ -134,7 +134,7 @@ void TradeHandler::handleMessage(Net::MessageIn &msg) { int type = msg.readInt16(); int amount = msg.readInt8(); - tradeWindow->addItem(type, false, amount, 0); + tradeWindow->addItem(type, false, amount, 0, 1); } break; case GPMSG_TRADE_SET_MONEY: @@ -201,7 +201,7 @@ void TradeHandler::addItem(Item *item, int amount) msg.writeInt8(amount); gameServerConnection->send(msg); - tradeWindow->addItem(item->getId(), true, amount, 0); + tradeWindow->addItem(item->getId(), true, amount, 0, 1); item->increaseQuantity(-amount); } |