diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-10-03 16:58:22 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-10-03 16:58:22 +0300 |
commit | c9e8b0ed6e3e193582eccd9b9bab6aeb3a0e37c3 (patch) | |
tree | f3aa10aacfe2fea2b11d1d385561c23fccbca8c7 /src/net/eathena/beinghandler.cpp | |
parent | 00e080c7230e68ec62ba30a32ac13fbafcab1946 (diff) | |
download | manaverse-c9e8b0ed6e3e193582eccd9b9bab6aeb3a0e37c3.tar.gz manaverse-c9e8b0ed6e3e193582eccd9b9bab6aeb3a0e37c3.tar.bz2 manaverse-c9e8b0ed6e3e193582eccd9b9bab6aeb3a0e37c3.tar.xz manaverse-c9e8b0ed6e3e193582eccd9b9bab6aeb3a0e37c3.zip |
eathena: add packet SMSG_MAP_TYPE 0x01d6.
Diffstat (limited to 'src/net/eathena/beinghandler.cpp')
-rw-r--r-- | src/net/eathena/beinghandler.cpp | 13 |
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"); |