From ab5e3e053a31efdc5799c1239e2bceaacf7cff61 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 23 Sep 2014 14:51:30 +0300 Subject: eathena: rename packet CMSG_PET_REQUEST_STATE to CMSG_PET_SEND_MESSAGE. --- src/net/eathena/pethandler.cpp | 4 ++-- src/net/eathena/pethandler.h | 2 +- src/net/eathena/protocol.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/net/eathena') diff --git a/src/net/eathena/pethandler.cpp b/src/net/eathena/pethandler.cpp index c565cd280..00dc27c07 100644 --- a/src/net/eathena/pethandler.cpp +++ b/src/net/eathena/pethandler.cpp @@ -140,9 +140,9 @@ void PetHandler::catchPet(const Being *const being) const outMsg.writeInt32(being->getId(), "monster id"); } -void PetHandler::requestPetState(const int data) const +void PetHandler::sendPetMessage(const int data) const { - createOutPacket(CMSG_PET_REQUEST_STATE); + createOutPacket(CMSG_PET_SEND_MESSAGE); outMsg.writeInt32(data, "param"); } diff --git a/src/net/eathena/pethandler.h b/src/net/eathena/pethandler.h index 3f98b619b..58f1ffe4b 100644 --- a/src/net/eathena/pethandler.h +++ b/src/net/eathena/pethandler.h @@ -51,7 +51,7 @@ class PetHandler final : public MessageHandler, public Net::PetHandler void catchPet(const Being *const being) const override final; - void requestPetState(const int data) const override final; + void sendPetMessage(const int data) const override final; void processPetMessage(Net::MessageIn &msg); diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h index 188599ac0..5c57a7643 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -406,7 +406,7 @@ #define CMSG_PLAYER_SET_MEMO 0x011d #define CMSG_PET_CATCH 0x019f -#define CMSG_PET_REQUEST_STATE 0x01a9 +#define CMSG_PET_SEND_MESSAGE 0x01a9 #define CMSG_PET_SET_NAME 0x01a5 #define CMSG_PET_SELECT_EGG 0x01a7 #define CMSG_PET_MENU_ACTION 0x01a1 -- cgit v1.2.3-70-g09d2