summaryrefslogtreecommitdiff
path: root/src/net/eathena/markethandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/eathena/markethandler.cpp')
-rw-r--r--src/net/eathena/markethandler.cpp27
1 files changed, 1 insertions, 26 deletions
diff --git a/src/net/eathena/markethandler.cpp b/src/net/eathena/markethandler.cpp
index 36e45e60e..5c71b3032 100644
--- a/src/net/eathena/markethandler.cpp
+++ b/src/net/eathena/markethandler.cpp
@@ -31,37 +31,12 @@ extern Net::MarketHandler *marketHandler;
namespace EAthena
{
-MarketHandler::MarketHandler() :
- MessageHandler()
+MarketHandler::MarketHandler()
{
- static const uint16_t _messages[] =
- {
- SMSG_NPC_MARKET_OPEN,
- SMSG_NPC_MARKET_BUY_ACK,
- 0
- };
- handledMessages = _messages;
marketHandler = this;
MarketRecv::mBuyDialog = nullptr;
}
-void MarketHandler::handleMessage(Net::MessageIn &msg)
-{
- switch (msg.getId())
- {
- case SMSG_NPC_MARKET_OPEN:
- MarketRecv::processMarketOpen(msg);
- break;
-
- case SMSG_NPC_MARKET_BUY_ACK:
- MarketRecv::processMarketBuyAck(msg);
- break;
-
- default:
- break;
- }
-}
-
void MarketHandler::close()
{
createOutPacket(CMSG_NPC_MARKET_CLOSE);