summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-04-23 22:34:51 +0300
committerAndrei Karas <akaras@inbox.ru>2011-04-23 22:34:51 +0300
commitccb35758a391807322265994b1712c8d7ed2d16c (patch)
tree93325f101a374a413ffb589052c81f5f54855a3c /src
parent41c5f11c96d73de62cb29b157e484b594856747b (diff)
downloadmanaplus-ccb35758a391807322265994b1712c8d7ed2d16c.tar.gz
manaplus-ccb35758a391807322265994b1712c8d7ed2d16c.tar.bz2
manaplus-ccb35758a391807322265994b1712c8d7ed2d16c.tar.xz
manaplus-ccb35758a391807322265994b1712c8d7ed2d16c.zip
Move special map flag from object layer to map properties.
Diffstat (limited to 'src')
-rw-r--r--src/resources/mapreader.cpp5
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;
}