diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-01-06 13:56:17 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-01-06 13:56:17 +0300 |
commit | d9467cf2772464a05c08baabd3ffa3d9d396f2d6 (patch) | |
tree | b477298e0c370374065c7aa3bb2b90d79b473662 /src/net/eathena/auctionhandler.cpp | |
parent | 2452dcf6d7a55fbccccfd7ea426d0e976023a52a (diff) | |
download | manaplus-d9467cf2772464a05c08baabd3ffa3d9d396f2d6.tar.gz manaplus-d9467cf2772464a05c08baabd3ffa3d9d396f2d6.tar.bz2 manaplus-d9467cf2772464a05c08baabd3ffa3d9d396f2d6.tar.xz manaplus-d9467cf2772464a05c08baabd3ffa3d9d396f2d6.zip |
eathena: add partial support for packet SMSG_AUCTION_MESSAGE 0x0250.
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 bcdc94aea..bbc6258bb 100644 --- a/src/net/eathena/auctionhandler.cpp +++ b/src/net/eathena/auctionhandler.cpp @@ -42,6 +42,7 @@ AuctionHandler::AuctionHandler() : SMSG_AUCTION_OPEN_WINDOW, SMSG_AUCTION_RESULTS, SMSG_AUCTION_SET_ITEM, + SMSG_AUCTION_MESSAGE, 0 }; handledMessages = _messages; @@ -64,6 +65,10 @@ void AuctionHandler::handleMessage(Net::MessageIn &msg) processAuctionSetItem(msg); break; + case SMSG_AUCTION_MESSAGE: + processAuctionMessage(msg); + break; + default: break; } @@ -104,6 +109,11 @@ void AuctionHandler::processAuctionSetItem(Net::MessageIn &msg) msg.readUInt8("flag"); } +void AuctionHandler::processAuctionMessage(Net::MessageIn &msg) +{ + msg.readUInt8("message"); +} + void AuctionHandler::cancelRequest() const { createOutPacket(CMSG_AUCTION_CANCEL_REQUEST); |