diff options
Diffstat (limited to 'src/net/eathena')
-rw-r--r-- | src/net/eathena/tradehandler.cpp | 6 | ||||
-rw-r--r-- | src/net/eathena/tradehandler.h | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/net/eathena/tradehandler.cpp b/src/net/eathena/tradehandler.cpp index ef38a4e67..a183b70a6 100644 --- a/src/net/eathena/tradehandler.cpp +++ b/src/net/eathena/tradehandler.cpp @@ -163,7 +163,7 @@ void TradeHandler::cancel() const createOutPacket(CMSG_TRADE_CANCEL_REQUEST); } -void TradeHandler::processTradeRequest(Net::MessageIn &msg) const +void TradeHandler::processTradeRequest(Net::MessageIn &msg) { const std::string &partner = msg.readString(24, "name"); msg.readInt32("char id"); @@ -171,7 +171,7 @@ void TradeHandler::processTradeRequest(Net::MessageIn &msg) const processTradeRequestContinue(partner); } -void TradeHandler::processTradeResponse2(Net::MessageIn &msg) const +void TradeHandler::processTradeResponse2(Net::MessageIn &msg) { const uint8_t type = msg.readUInt8("type"); msg.readInt32("char id"); @@ -239,7 +239,7 @@ void TradeHandler::processTradeItemAddResponse(Net::MessageIn &msg) } } -void TradeHandler::processTradeUndo(Net::MessageIn &msg A_UNUSED) const +void TradeHandler::processTradeUndo(Net::MessageIn &msg A_UNUSED) { // +++ here need clear trade window from partner side? } diff --git a/src/net/eathena/tradehandler.h b/src/net/eathena/tradehandler.h index bdeebc91e..ca444ba31 100644 --- a/src/net/eathena/tradehandler.h +++ b/src/net/eathena/tradehandler.h @@ -55,11 +55,11 @@ class TradeHandler final : public MessageHandler, public Ea::TradeHandler void cancel() const override final; protected: - void processTradeRequest(Net::MessageIn &msg) const; + static void processTradeRequest(Net::MessageIn &msg); - void processTradeResponse2(Net::MessageIn &msg) const; + static void processTradeResponse2(Net::MessageIn &msg); - void processTradeUndo(Net::MessageIn &msg) const; + static void processTradeUndo(Net::MessageIn &msg); static void processTradeItemAdd(Net::MessageIn &msg); |