diff options
-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; } |