summaryrefslogtreecommitdiff
path: root/src/net/eathena
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-10 23:41:33 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-10 23:41:33 +0300
commitf7b446bf4e31dfd077d2caac1cfbd2c4a28b5b81 (patch)
treee26e99216761019ee7c1b8e7b4d13ecc0bf9e912 /src/net/eathena
parentfca0f15e161755e0a430802b1b38bdda0cb033cb (diff)
downloadmv-f7b446bf4e31dfd077d2caac1cfbd2c4a28b5b81.tar.gz
mv-f7b446bf4e31dfd077d2caac1cfbd2c4a28b5b81.tar.bz2
mv-f7b446bf4e31dfd077d2caac1cfbd2c4a28b5b81.tar.xz
mv-f7b446bf4e31dfd077d2caac1cfbd2c4a28b5b81.zip
eathena: impliment packet SMSG_MAP_TYPE.
Diffstat (limited to 'src/net/eathena')
-rw-r--r--src/net/eathena/beinghandler.cpp10
1 files changed, 7 insertions, 3 deletions
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)