diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-11-30 18:28:12 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-11-30 18:28:12 +0300 |
commit | fde614c1e6e944b4805e7e6a89689b9d546330ad (patch) | |
tree | e378b3d2ace8ae88a3eaf0e98657bbd227a748ab /src/net/tmwa/playerhandler.cpp | |
parent | 0af4b6dd0f616564a55447c7ce5318c72f68e590 (diff) | |
download | manaplus-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/playerhandler.cpp')
-rw-r--r-- | src/net/tmwa/playerhandler.cpp | 12 |
1 files changed, 0 insertions, 12 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") |