diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-03-30 04:39:13 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-03-30 04:39:13 +0300 |
commit | d629f56517f55d1fd756c4774d9a368d66f615df (patch) | |
tree | a3675eb7af6b95bd33a8c9887bda5952a11fced5 /src/resources | |
parent | a08839164df3ae37d216d810123f17eb968da1d4 (diff) | |
download | manaverse-d629f56517f55d1fd756c4774d9a368d66f615df.tar.gz manaverse-d629f56517f55d1fd756c4774d9a368d66f615df.tar.bz2 manaverse-d629f56517f55d1fd756c4774d9a368d66f615df.tar.xz manaverse-d629f56517f55d1fd756c4774d9a368d66f615df.zip |
Add background music map ranges.
Diffstat (limited to 'src/resources')
-rw-r--r-- | src/resources/mapreader.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/resources/mapreader.cpp b/src/resources/mapreader.cpp index d930bf083..25e9750de 100644 --- a/src/resources/mapreader.cpp +++ b/src/resources/mapreader.cpp @@ -355,6 +355,11 @@ Map *MapReader::readMap(xmlNodePtr node, const std::string &path) // map->addPortal(_("Spawn: ") + objName, MapItem::PORTAL, // objX, objY, objW, objH); } + else if (objType == "MUSIC") + { + map->addRange(objName, MapItem::MUSIC, + objX, objY, objW, objH); + } else { logger->log1(" Warning: Unknown object type"); |