summaryrefslogtreecommitdiff
path: root/src/resources/mapreader.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-05-26 19:35:24 +0300
committerAndrei Karas <akaras@inbox.ru>2016-05-26 19:35:24 +0300
commit6ed4f7f09a297e9afb829634399c94ccc542729e (patch)
treeb80aec2b7164f46445d154c9a3e29e05ab7d0f99 /src/resources/mapreader.cpp
parent5663e39eba8979228e252d76fba676586c4f862f (diff)
downloadplus-6ed4f7f09a297e9afb829634399c94ccc542729e.tar.gz
plus-6ed4f7f09a297e9afb829634399c94ccc542729e.tar.bz2
plus-6ed4f7f09a297e9afb829634399c94ccc542729e.tar.xz
plus-6ed4f7f09a297e9afb829634399c94ccc542729e.zip
Move walk layer load function from resourcemanager into separate file.
Diffstat (limited to 'src/resources/mapreader.cpp')
-rw-r--r--src/resources/mapreader.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resources/mapreader.cpp b/src/resources/mapreader.cpp
index 9cc2542a5..638eb9392 100644
--- a/src/resources/mapreader.cpp
+++ b/src/resources/mapreader.cpp
@@ -49,7 +49,7 @@
#include "resources/loaders/imageloader.h"
-#include "resources/resourcemanager/resourcemanager.h"
+#include "resources/loaders/walklayerloader.h"
#include "utils/base64.h"
#include "utils/delete2.h"
@@ -475,7 +475,7 @@ Map *MapReader::readMap(XmlNodePtrConst node, const std::string &path)
map->clearIndexedTilesets();
map->setActorsFix(0, atoi(map->getProperty("actorsfix").c_str()));
map->reduce();
- map->setWalkLayer(resourceManager->getWalkLayer(fileName, map));
+ map->setWalkLayer(Loader::getWalkLayer(fileName, map));
unloadTempLayers();
map->updateDrawLayersList();
BLOCK_END("MapReader::readMap xml")