summaryrefslogtreecommitdiff
path: root/src/net/tmwserv/tradehandler.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-04-15 20:49:17 -0600
committerJared Adams <jaxad0127@gmail.com>2009-04-15 20:49:17 -0600
commit6b59adabfcf909cb02075e2fab2d715b4e34af95 (patch)
tree3ef8c4a547ad8849395055d5ac61dc2bd81a9928 /src/net/tmwserv/tradehandler.cpp
parent24fb77131bf6a56c0a9db296c21e4182e303c0cb (diff)
downloadmana-6b59adabfcf909cb02075e2fab2d715b4e34af95.tar.gz
mana-6b59adabfcf909cb02075e2fab2d715b4e34af95.tar.bz2
mana-6b59adabfcf909cb02075e2fab2d715b4e34af95.tar.xz
mana-6b59adabfcf909cb02075e2fab2d715b4e34af95.zip
Merge the trade dialog
Diffstat (limited to 'src/net/tmwserv/tradehandler.cpp')
-rw-r--r--src/net/tmwserv/tradehandler.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/net/tmwserv/tradehandler.cpp b/src/net/tmwserv/tradehandler.cpp
index 4528988b..2b10bac1 100644
--- a/src/net/tmwserv/tradehandler.cpp
+++ b/src/net/tmwserv/tradehandler.cpp
@@ -128,7 +128,7 @@ void TradeHandler::handleMessage(MessageIn &msg)
break;
case GPMSG_TRADE_ACCEPT:
- tradeWindow->receivedOk();
+ tradeWindow->receivedOk(false);
break;
case GPMSG_TRADE_CANCEL:
@@ -180,7 +180,9 @@ void TradeHandler::removeItem(int slotNum, int amount)
void TradeHandler::setMoney(int amount)
{
- // TODO
+ MessageOut msg(PGMSG_TRADE_SET_MONEY);
+ msg.writeInt32(amount);
+ Net::GameServer::connection->send(msg);
}
void TradeHandler::confirm()
@@ -190,7 +192,8 @@ void TradeHandler::confirm()
void TradeHandler::finish()
{
- // TODO
+ MessageOut msg(PGMSG_TRADE_ACCEPT);
+ Net::GameServer::connection->send(msg);
}
void TradeHandler::cancel()