From f7b446bf4e31dfd077d2caac1cfbd2c4a28b5b81 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 10 May 2015 23:41:33 +0300 Subject: eathena: impliment packet SMSG_MAP_TYPE. --- src/net/eathena/beinghandler.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/net') diff --git a/src/net/eathena/beinghandler.cpp b/src/net/eathena/beinghandler.cpp index 5ff11ee83..29b7a2578 100644 --- a/src/net/eathena/beinghandler.cpp +++ b/src/net/eathena/beinghandler.cpp @@ -25,6 +25,7 @@ #include "actormanager.h" #include "effectmanager.h" #include "game.h" +#include "notifymanager.h" #include "being/localplayer.h" #include "being/mercenaryinfo.h" @@ -48,6 +49,7 @@ #include "net/eathena/sprite.h" #include "resources/iteminfo.h" +#include "resources/notifytypes.h" #include "resources/db/itemdb.h" @@ -1125,9 +1127,11 @@ void BeingHandler::processMapTypeProperty(Net::MessageIn &msg) void BeingHandler::processMapType(Net::MessageIn &msg) { - UNIMPLIMENTEDPACKET; - // battle ground map or not - msg.readInt16("type"); + const int16_t type = msg.readInt16("type"); + if (type == 19) + NotifyManager::notify(NotifyTypes::MAP_TYPE_BATTLEFIELD); + else + UNIMPLIMENTEDPACKET; } void BeingHandler::processSkillCasting(Net::MessageIn &msg) -- cgit v1.2.3-60-g2f50