diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-11 12:12:43 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-11 12:12:43 +0300 |
commit | 660d3b585ab50038e5b2ea3fb9cf4049a7e697d1 (patch) | |
tree | 63512148e5891f266bbdb110758484b0fb6957a5 /src/net/eathena/pethandler.cpp | |
parent | 0a39e956218ca15bf78803f89141c7c9dfcec0d9 (diff) | |
download | manaplus-660d3b585ab50038e5b2ea3fb9cf4049a7e697d1.tar.gz manaplus-660d3b585ab50038e5b2ea3fb9cf4049a7e697d1.tar.bz2 manaplus-660d3b585ab50038e5b2ea3fb9cf4049a7e697d1.tar.xz manaplus-660d3b585ab50038e5b2ea3fb9cf4049a7e697d1.zip |
eathena: add packet CMSG_PET_CATCH 0x019f.
Diffstat (limited to 'src/net/eathena/pethandler.cpp')
-rw-r--r-- | src/net/eathena/pethandler.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/net/eathena/pethandler.cpp b/src/net/eathena/pethandler.cpp index f96176c38..1b8f77881 100644 --- a/src/net/eathena/pethandler.cpp +++ b/src/net/eathena/pethandler.cpp @@ -22,9 +22,11 @@ #include "gui/chatconsts.h" +#include "net/chathandler.h" #include "net/net.h" -#include "net/chathandler.h" +#include "net/eathena/messageout.h" +#include "net/eathena/protocol.h" #include "debug.h" @@ -74,4 +76,13 @@ void PetHandler::emote(const uint8_t emoteId, const int petId A_UNUSED) static_cast<int>(emoteId), mRandCounter), GENERAL_CHANNEL); } +void PetHandler::catchPet(const Being *const being) const +{ + if (!being) + return; + + MessageOut outMsg(CMSG_PET_CATCH); + outMsg.writeInt32(being->getId()); +} + } // namespace EAthena |