diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-10-09 18:30:32 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-10-09 18:30:32 +0300 |
commit | 659ceeecb82c3c8cc617be93d0d45e15965435ae (patch) | |
tree | 4253b96f87aac328a73634daedbc37329996bc0e /src/net/eathena/tradehandler.cpp | |
parent | 841273fbd5361765b39c7fe8309aa7447b8e79de (diff) | |
download | plus-659ceeecb82c3c8cc617be93d0d45e15965435ae.tar.gz plus-659ceeecb82c3c8cc617be93d0d45e15965435ae.tar.bz2 plus-659ceeecb82c3c8cc617be93d0d45e15965435ae.tar.xz plus-659ceeecb82c3c8cc617be93d0d45e15965435ae.zip |
eathena: add partial support for packet SMSG_TRADE_UNDO 0x00f1.
Diffstat (limited to 'src/net/eathena/tradehandler.cpp')
-rw-r--r-- | src/net/eathena/tradehandler.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/net/eathena/tradehandler.cpp b/src/net/eathena/tradehandler.cpp index da97b7a0a..7a4cb4e9f 100644 --- a/src/net/eathena/tradehandler.cpp +++ b/src/net/eathena/tradehandler.cpp @@ -60,6 +60,7 @@ TradeHandler::TradeHandler() : SMSG_TRADE_OK, SMSG_TRADE_CANCEL, SMSG_TRADE_COMPLETE, + SMSG_TRADE_UNDO, 0 }; handledMessages = _messages; @@ -103,6 +104,10 @@ void TradeHandler::handleMessage(Net::MessageIn &msg) processTradeComplete(msg); break; + case SMSG_TRADE_UNDO: + processTradeUndo(msg); + break; + default: break; } @@ -235,4 +240,9 @@ void TradeHandler::processTradeItemAddResponse(Net::MessageIn &msg) } } +void TradeHandler::processTradeUndo(Net::MessageIn &msg A_UNUSED) const +{ + // +++ here need clear trade window from partner side? +} + } // namespace EAthena |