From ccb35758a391807322265994b1712c8d7ed2d16c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 23 Apr 2011 22:34:51 +0300 Subject: Move special map flag from object layer to map properties. --- src/resources/mapreader.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/resources') 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; } -- cgit v1.2.3-70-g09d2