diff options
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"); |