diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-01-06 14:11:47 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-01-06 14:11:47 +0300 |
commit | 0af4d61628a0b1d8d697101578ee90d3e2f90ea9 (patch) | |
tree | a0c56cbadbb9b760b932133015e30cb3fea73d07 /src/net/eathena/auctionhandler.cpp | |
parent | d9467cf2772464a05c08baabd3ffa3d9d396f2d6 (diff) | |
download | manaplus-0af4d61628a0b1d8d697101578ee90d3e2f90ea9.tar.gz manaplus-0af4d61628a0b1d8d697101578ee90d3e2f90ea9.tar.bz2 manaplus-0af4d61628a0b1d8d697101578ee90d3e2f90ea9.tar.xz manaplus-0af4d61628a0b1d8d697101578ee90d3e2f90ea9.zip |
eathena: add partial support for packet SMSG_AUCTION_CLOSE 0x025d.
Diffstat (limited to 'src/net/eathena/auctionhandler.cpp')
-rw-r--r-- | src/net/eathena/auctionhandler.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/net/eathena/auctionhandler.cpp b/src/net/eathena/auctionhandler.cpp index bbc6258bb..e36785218 100644 --- a/src/net/eathena/auctionhandler.cpp +++ b/src/net/eathena/auctionhandler.cpp @@ -43,6 +43,7 @@ AuctionHandler::AuctionHandler() : SMSG_AUCTION_RESULTS, SMSG_AUCTION_SET_ITEM, SMSG_AUCTION_MESSAGE, + SMSG_AUCTION_CLOSE, 0 }; handledMessages = _messages; @@ -69,6 +70,10 @@ void AuctionHandler::handleMessage(Net::MessageIn &msg) processAuctionMessage(msg); break; + case SMSG_AUCTION_CLOSE: + processAuctionClose(msg); + break; + default: break; } @@ -114,6 +119,11 @@ void AuctionHandler::processAuctionMessage(Net::MessageIn &msg) msg.readUInt8("message"); } +void AuctionHandler::processAuctionClose(Net::MessageIn &msg) +{ + msg.readInt16("flag"); +} + void AuctionHandler::cancelRequest() const { createOutPacket(CMSG_AUCTION_CANCEL_REQUEST); |