From d629f56517f55d1fd756c4774d9a368d66f615df Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 30 Mar 2011 04:39:13 +0300 Subject: Add background music map ranges. --- src/resources/mapreader.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/resources') 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"); -- cgit v1.2.3-70-g09d2