summaryrefslogtreecommitdiff
path: root/src/net/tmwa
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/tmwa
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/tmwa')
-rw-r--r--src/net/tmwa/playerhandler.cpp12
-rw-r--r--src/net/tmwa/playerhandler.h2
2 files changed, 0 insertions, 14 deletions
diff --git a/src/net/tmwa/playerhandler.cpp b/src/net/tmwa/playerhandler.cpp
index 8bea7d01e..cec4d2772 100644
--- a/src/net/tmwa/playerhandler.cpp
+++ b/src/net/tmwa/playerhandler.cpp
@@ -24,7 +24,6 @@
#include "configuration.h"
#include "game.h"
-#include "soundmanager.h"
#include "being/attributes.h"
#include "being/beingflag.h"
@@ -329,17 +328,6 @@ void PlayerHandler::updateStatus(const uint8_t status) const
outMsg.writeInt8(0, "unused");
}
-void PlayerHandler::processMapMusic(Net::MessageIn &msg)
-{
- const int size = msg.readInt16("len") - 5;
- const std::string music = msg.readString(size, "name");
- soundManager.playMusic(music);
-
- Map *const map = viewport->getMap();
- if (map)
- map->setMusicFile(music);
-}
-
void PlayerHandler::processPlayerStatUpdate5(Net::MessageIn &msg)
{
BLOCK_START("PlayerHandler::processPlayerStatUpdate5")
diff --git a/src/net/tmwa/playerhandler.h b/src/net/tmwa/playerhandler.h
index 694961354..627c9387f 100644
--- a/src/net/tmwa/playerhandler.h
+++ b/src/net/tmwa/playerhandler.h
@@ -85,8 +85,6 @@ class PlayerHandler final : public MessageHandler, public Ea::PlayerHandler
const int mod,
const bool notify) const override final;
- static void processMapMusic(Net::MessageIn &msg);
-
static void processPlayerStatUpdate5(Net::MessageIn &msg);
static void processWalkResponse(Net::MessageIn &msg);