From afc144cfe396f10eea5b160c711eec4b20ae00c3 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 26 May 2016 00:59:29 +0300 Subject: Move atlas load function from resourcemanager into separate file. --- src/resources/mapreader.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/resources/mapreader.cpp') diff --git a/src/resources/mapreader.cpp b/src/resources/mapreader.cpp index 161144a7d..9cc2542a5 100644 --- a/src/resources/mapreader.cpp +++ b/src/resources/mapreader.cpp @@ -42,6 +42,7 @@ #ifdef USE_OPENGL #include "resources/db/mapdb.h" +#include "resources/loaders/atlasloader.h" #endif #include "resources/map/tileanimation.h" @@ -351,8 +352,9 @@ Map *MapReader::readMap(XmlNodePtrConst node, const std::string &path) const MapInfo *const info = MapDB::getMapAtlas(fileName); if (info) { - map->setAtlas(resourceManager->getAtlas( - info->atlas, *info->files)); + map->setAtlas(Loader::getAtlas( + info->atlas, + *info->files)); } } BLOCK_END("MapReader::readMap load atlas") -- cgit v1.2.3-70-g09d2