summaryrefslogtreecommitdiff
path: root/src/net/eathena
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-11-30 18:28:12 +0300
committerAndrei Karas <akaras@inbox.ru>2014-11-30 18:28:12 +0300
commitfde614c1e6e944b4805e7e6a89689b9d546330ad (patch)
treee378b3d2ace8ae88a3eaf0e98657bbd227a748ab /src/net/eathena
parent0af4b6dd0f616564a55447c7ce5318c72f68e590 (diff)
downloadmanaplus-fde614c1e6e944b4805e7e6a89689b9d546330ad.tar.gz
manaplus-fde614c1e6e944b4805e7e6a89689b9d546330ad.tar.bz2
manaplus-fde614c1e6e944b4805e7e6a89689b9d546330ad.tar.xz
manaplus-fde614c1e6e944b4805e7e6a89689b9d546330ad.zip
eathena: add packet SMSG_MAP_MUSIC 0x0b05.
Diffstat (limited to 'src/net/eathena')
-rw-r--r--src/net/eathena/packets.h4
-rw-r--r--src/net/eathena/playerhandler.cpp5
-rw-r--r--src/net/eathena/protocol.h2
3 files changed, 10 insertions, 1 deletions
diff --git a/src/net/eathena/packets.h b/src/net/eathena/packets.h
index 36d31329c..cd1b69f93 100644
--- a/src/net/eathena/packets.h
+++ b/src/net/eathena/packets.h
@@ -278,8 +278,10 @@ int16_t packet_lengths[] =
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+//0 1 2 3 4 5 6 7 8 9 a b c d e f
+//0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
// #0x0B00
- 16, -1, 10, -1, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 16, -1, 10, -1, -1, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
diff --git a/src/net/eathena/playerhandler.cpp b/src/net/eathena/playerhandler.cpp
index 7e1458e90..e845884c8 100644
--- a/src/net/eathena/playerhandler.cpp
+++ b/src/net/eathena/playerhandler.cpp
@@ -60,6 +60,7 @@ PlayerHandler::PlayerHandler() :
SMSG_PLAYER_HEAL,
SMSG_PLAYER_SKILL_MESSAGE,
SMSG_MAP_MASK,
+ SMSG_MAP_MUSIC,
0
};
handledMessages = _messages;
@@ -135,6 +136,10 @@ void PlayerHandler::handleMessage(Net::MessageIn &msg)
processMapMask(msg);
break;
+ case SMSG_MAP_MUSIC:
+ processMapMusic(msg);
+ break;
+
default:
break;
}
diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h
index 94c620efd..0ac0a1fcc 100644
--- a/src/net/eathena/protocol.h
+++ b/src/net/eathena/protocol.h
@@ -313,6 +313,8 @@
#define SMSG_MOB_INFO 0x0b03
+#define SMSG_MAP_MUSIC 0x0b05
+
/**********************************
* Packets from client to server *
**********************************/