summaryrefslogtreecommitdiff
path: root/src/resources/mapreader.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-04-23 02:10:02 +0300
committerAndrei Karas <akaras@inbox.ru>2011-04-23 20:52:54 +0300
commitdce838195b3d2ca4703094aa8602038bb1e1e7f3 (patch)
tree1d79540f9f3787129c08c1326ab7e72249a2b27f /src/resources/mapreader.cpp
parentf5536169ce6143ae39bcfd8b353e6495dac76a72 (diff)
downloadmv-dce838195b3d2ca4703094aa8602038bb1e1e7f3.tar.gz
mv-dce838195b3d2ca4703094aa8602038bb1e1e7f3.tar.bz2
mv-dce838195b3d2ca4703094aa8602038bb1e1e7f3.tar.xz
mv-dce838195b3d2ca4703094aa8602038bb1e1e7f3.zip
Reorder map sprites to draw correctly player with more than one tile width.
Diffstat (limited to 'src/resources/mapreader.cpp')
-rw-r--r--src/resources/mapreader.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/resources/mapreader.cpp b/src/resources/mapreader.cpp
index b80bc960f..3b7ebd2b1 100644
--- a/src/resources/mapreader.cpp
+++ b/src/resources/mapreader.cpp
@@ -360,6 +360,10 @@ 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");