summaryrefslogtreecommitdiff
path: root/src/net/eathena/auctionhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-01-06 13:56:17 +0300
committerAndrei Karas <akaras@inbox.ru>2015-01-06 13:56:17 +0300
commitd9467cf2772464a05c08baabd3ffa3d9d396f2d6 (patch)
treeb477298e0c370374065c7aa3bb2b90d79b473662 /src/net/eathena/auctionhandler.cpp
parent2452dcf6d7a55fbccccfd7ea426d0e976023a52a (diff)
downloadmanaverse-d9467cf2772464a05c08baabd3ffa3d9d396f2d6.tar.gz
manaverse-d9467cf2772464a05c08baabd3ffa3d9d396f2d6.tar.bz2
manaverse-d9467cf2772464a05c08baabd3ffa3d9d396f2d6.tar.xz
manaverse-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.cpp10
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);