From 5fb0cfc6d741fc1791172f374ed4ac666e73144f Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 16 Dec 2014 16:52:42 +0300 Subject: eathena: rename packet SMSG_TRADE_RESPONSE2 into SMSG_TRADE_RESPONSE. --- src/net/eathena/protocol.h | 2 +- src/net/eathena/tradehandler.cpp | 8 ++++---- src/net/eathena/tradehandler.h | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h index 9bcdcf740..b87f26311 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -160,7 +160,7 @@ // Receiving a request to trade #define SMSG_TRADE_REQUEST 0x01f4 -#define SMSG_TRADE_RESPONSE2 0x01f5 +#define SMSG_TRADE_RESPONSE 0x01f5 #define SMSG_TRADE_ITEM_ADD 0x080f #define SMSG_TRADE_ITEM_ADD_RESPONSE 0x00ea #define SMSG_TRADE_OK 0x00ec diff --git a/src/net/eathena/tradehandler.cpp b/src/net/eathena/tradehandler.cpp index acd4090b6..88bcceb10 100644 --- a/src/net/eathena/tradehandler.cpp +++ b/src/net/eathena/tradehandler.cpp @@ -55,7 +55,7 @@ TradeHandler::TradeHandler() : static const uint16_t _messages[] = { SMSG_TRADE_REQUEST, - SMSG_TRADE_RESPONSE2, + SMSG_TRADE_RESPONSE, SMSG_TRADE_ITEM_ADD, SMSG_TRADE_ITEM_ADD_RESPONSE, SMSG_TRADE_OK, @@ -79,8 +79,8 @@ void TradeHandler::handleMessage(Net::MessageIn &msg) processTradeRequest(msg); break; - case SMSG_TRADE_RESPONSE2: - processTradeResponse2(msg); + case SMSG_TRADE_RESPONSE: + processTradeResponse(msg); break; case SMSG_TRADE_ITEM_ADD: @@ -173,7 +173,7 @@ void TradeHandler::processTradeRequest(Net::MessageIn &msg) processTradeRequestContinue(partner); } -void TradeHandler::processTradeResponse2(Net::MessageIn &msg) +void TradeHandler::processTradeResponse(Net::MessageIn &msg) { const uint8_t type = msg.readUInt8("type"); msg.readInt32("char id"); diff --git a/src/net/eathena/tradehandler.h b/src/net/eathena/tradehandler.h index ccfee1101..c2ae2d4f9 100644 --- a/src/net/eathena/tradehandler.h +++ b/src/net/eathena/tradehandler.h @@ -57,7 +57,7 @@ class TradeHandler final : public MessageHandler, public Ea::TradeHandler protected: static void processTradeRequest(Net::MessageIn &msg); - static void processTradeResponse2(Net::MessageIn &msg); + static void processTradeResponse(Net::MessageIn &msg); static void processTradeUndo(Net::MessageIn &msg); -- cgit v1.2.3-60-g2f50