summaryrefslogtreecommitdiff
path: root/src/net/eathena/beinghandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-10-03 16:58:22 +0300
committerAndrei Karas <akaras@inbox.ru>2014-10-03 16:58:22 +0300
commitc9e8b0ed6e3e193582eccd9b9bab6aeb3a0e37c3 (patch)
treef3aa10aacfe2fea2b11d1d385561c23fccbca8c7 /src/net/eathena/beinghandler.cpp
parent00e080c7230e68ec62ba30a32ac13fbafcab1946 (diff)
downloadmanaplus-c9e8b0ed6e3e193582eccd9b9bab6aeb3a0e37c3.tar.gz
manaplus-c9e8b0ed6e3e193582eccd9b9bab6aeb3a0e37c3.tar.bz2
manaplus-c9e8b0ed6e3e193582eccd9b9bab6aeb3a0e37c3.tar.xz
manaplus-c9e8b0ed6e3e193582eccd9b9bab6aeb3a0e37c3.zip
eathena: add packet SMSG_MAP_TYPE 0x01d6.
Diffstat (limited to 'src/net/eathena/beinghandler.cpp')
-rw-r--r--src/net/eathena/beinghandler.cpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/net/eathena/beinghandler.cpp b/src/net/eathena/beinghandler.cpp
index 7db7f0e80..3e048d1a4 100644
--- a/src/net/eathena/beinghandler.cpp
+++ b/src/net/eathena/beinghandler.cpp
@@ -104,6 +104,7 @@ BeingHandler::BeingHandler(const bool enableSync) :
SMSG_PVP_MAP_MODE,
SMSG_PVP_SET,
SMSG_MAP_TYPE_PROPERTY2,
+ SMSG_MAP_TYPE,
SMSG_MONSTER_HP,
SMSG_PLAYER_HP,
SMSG_SKILL_AUTO_CAST,
@@ -282,6 +283,10 @@ void BeingHandler::handleMessage(Net::MessageIn &msg)
processMapTypeProperty(msg);
break;
+ case SMSG_MAP_TYPE:
+ processMapType(msg);
+ break;
+
case SMSG_MONSTER_HP:
case SMSG_PLAYER_HP:
processMonsterHp(msg);
@@ -1447,10 +1452,16 @@ void BeingHandler::processBeingSpawn(Net::MessageIn &msg)
void BeingHandler::processMapTypeProperty(Net::MessageIn &msg) const
{
msg.readInt16("type");
- // need get pvp and other flags from here
+ // +++ need get pvp and other flags from here
msg.readInt32("flags");
}
+void BeingHandler::processMapType(Net::MessageIn &msg) const
+{
+ // battle ground map or not
+ msg.readInt16("type");
+}
+
void BeingHandler::processSkillCasting(Net::MessageIn &msg) const
{
msg.readInt32("src id");