diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-04-23 22:34:51 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-04-23 22:34:51 +0300 |
commit | ccb35758a391807322265994b1712c8d7ed2d16c (patch) | |
tree | 93325f101a374a413ffb589052c81f5f54855a3c | |
parent | 41c5f11c96d73de62cb29b157e484b594856747b (diff) | |
download | mv-ccb35758a391807322265994b1712c8d7ed2d16c.tar.gz mv-ccb35758a391807322265994b1712c8d7ed2d16c.tar.bz2 mv-ccb35758a391807322265994b1712c8d7ed2d16c.tar.xz mv-ccb35758a391807322265994b1712c8d7ed2d16c.zip |
Move special map flag from object layer to map properties.
-rw-r--r-- | src/resources/mapreader.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/resources/mapreader.cpp b/src/resources/mapreader.cpp index 3b7ebd2b1..51e1741f2 100644 --- a/src/resources/mapreader.cpp +++ b/src/resources/mapreader.cpp @@ -360,10 +360,6 @@ Map *MapReader::readMap(xmlNodePtr node, const std::string &path) map->addRange(objName, MapItem::MUSIC, objX, objY, objW, objH); } - else if (objType == "ACTORSFIX") - { - map->setActorsFix(objX, objY); - } else { logger->log1(" Warning: Unknown object type"); @@ -375,6 +371,7 @@ Map *MapReader::readMap(xmlNodePtr node, const std::string &path) map->initializeAmbientLayers(); map->clearIndexedTilesets(); + map->setActorsFix(0, atoi(map->getProperty("actorsfix").c_str())); return map; } |