summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-03-11 14:30:35 +0300
committerAndrei Karas <akaras@inbox.ru>2015-03-11 14:30:35 +0300
commitc28671db8583dc66e7e3c3b1428c870f5222dbcc (patch)
tree2bd07a040b6045a7438929651a413a3c28349b7c /src
parent90135ee39f6d28d5a7e1cdc58c3a90533aa6fa25 (diff)
downloadmanaplus-c28671db8583dc66e7e3c3b1428c870f5222dbcc.tar.gz
manaplus-c28671db8583dc66e7e3c3b1428c870f5222dbcc.tar.bz2
manaplus-c28671db8583dc66e7e3c3b1428c870f5222dbcc.tar.xz
manaplus-c28671db8583dc66e7e3c3b1428c870f5222dbcc.zip
eathena: add partial support for packet SMSG_PET_CATCH_PROCESS 0x019e.
Diffstat (limited to 'src')
-rw-r--r--src/net/eathena/pethandler.cpp10
-rw-r--r--src/net/eathena/pethandler.h2
-rw-r--r--src/net/eathena/protocol.h1
3 files changed, 13 insertions, 0 deletions
diff --git a/src/net/eathena/pethandler.cpp b/src/net/eathena/pethandler.cpp
index 1b03cbf83..71d4d17f2 100644
--- a/src/net/eathena/pethandler.cpp
+++ b/src/net/eathena/pethandler.cpp
@@ -68,6 +68,7 @@ PetHandler::PetHandler() :
SMSG_PET_DATA,
SMSG_PET_STATUS,
SMSG_PET_FOOD,
+ SMSG_PET_CATCH_PROCESS,
0
};
handledMessages = _messages;
@@ -103,6 +104,10 @@ void PetHandler::handleMessage(Net::MessageIn &msg)
processPetFood(msg);
break;
+ case SMSG_PET_CATCH_PROCESS:
+ processPetCatchProcess(msg);
+ break;
+
default:
break;
}
@@ -342,4 +347,9 @@ void PetHandler::startAi(const bool start A_UNUSED) const
{
}
+void PetHandler::processPetCatchProcess(Net::MessageIn &msg)
+{
+ UNIMPLIMENTEDPACKET;
+}
+
} // namespace EAthena
diff --git a/src/net/eathena/pethandler.h b/src/net/eathena/pethandler.h
index 6d037b7fe..967df6795 100644
--- a/src/net/eathena/pethandler.h
+++ b/src/net/eathena/pethandler.h
@@ -80,6 +80,8 @@ class PetHandler final : public MessageHandler, public Net::PetHandler
static void processPetFood(Net::MessageIn &msg);
+ static void processPetCatchProcess(Net::MessageIn &msg);
+
int mRandCounter;
};
diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h
index da873bda8..45f8d9439 100644
--- a/src/net/eathena/protocol.h
+++ b/src/net/eathena/protocol.h
@@ -295,6 +295,7 @@
#define SMSG_PET_DATA 0x01a4
#define SMSG_PET_STATUS 0x01a2
#define SMSG_PET_FOOD 0x01a3
+#define SMSG_PET_CATCH_PROCESS 0x019e
#define SMSG_BANK_STATUS 0x09a6
#define SMSG_BANK_DEPOSIT 0x09a8