summaryrefslogtreecommitdiff
path: root/src/map.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-10-30 22:02:02 +0300
committerAndrei Karas <akaras@inbox.ru>2013-10-30 22:10:17 +0300
commit4d2b3cae0ab00d1ef832f11d14bd299d6d5c2a6b (patch)
tree143a9b96bc0ad57ea90d466d70c5bc5749daf541 /src/map.cpp
parentbb5d5bfd20c09952cfb3b9881b90177b0c34aac7 (diff)
downloadmv-4d2b3cae0ab00d1ef832f11d14bd299d6d5c2a6b.tar.gz
mv-4d2b3cae0ab00d1ef832f11d14bd299d6d5c2a6b.tar.bz2
mv-4d2b3cae0ab00d1ef832f11d14bd299d6d5c2a6b.tar.xz
mv-4d2b3cae0ab00d1ef832f11d14bd299d6d5c2a6b.zip
add support for temporary replace background music on given map by server.
Diffstat (limited to 'src/map.cpp')
-rw-r--r--src/map.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/map.cpp b/src/map.cpp
index 5188da985..e4ab0c60f 100644
--- a/src/map.cpp
+++ b/src/map.cpp
@@ -1631,3 +1631,8 @@ void Map::setMask(const int mask)
mRedrawMap = true;
mMask = mask;
}
+
+void Map::setMusicFile(const std::string &file)
+{
+ setProperty("music", file);
+}