summaryrefslogtreecommitdiff
path: root/src/resources/mapreader.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-06-06 18:45:57 +0300
committerAndrei Karas <akaras@inbox.ru>2016-06-06 19:04:03 +0300
commiteab637f57db36a104815217a432416d852d141a6 (patch)
tree53e747c467b57e7dc8950096293642876c5976b0 /src/resources/mapreader.cpp
parent1d563a171844af47aa013519618ad018d2b194ea (diff)
downloadmanaplus-eab637f57db36a104815217a432416d852d141a6.tar.gz
manaplus-eab637f57db36a104815217a432416d852d141a6.tar.bz2
manaplus-eab637f57db36a104815217a432416d852d141a6.tar.xz
manaplus-eab637f57db36a104815217a432416d852d141a6.zip
Report in map reader if loaded tilesets not included into atlases.
Diffstat (limited to 'src/resources/mapreader.cpp')
-rw-r--r--src/resources/mapreader.cpp16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/resources/mapreader.cpp b/src/resources/mapreader.cpp
index 1736c0cd5..67ce2f465 100644
--- a/src/resources/mapreader.cpp
+++ b/src/resources/mapreader.cpp
@@ -1063,9 +1063,21 @@ Tileset *MapReader::readTileset(XmlNodePtr node,
if (tilebmp)
{
- set = new Tileset(tilebmp, tw, th, firstGid, margin,
- spacing);
+ set = new Tileset(tilebmp,
+ tw, th,
+ firstGid,
+ margin,
+ spacing);
tilebmp->decRef();
+#ifdef USE_OPENGL
+ if (tilebmp->getType() == ImageType::Image &&
+ map->haveAtlas() == true &&
+ graphicsManager.getUseAtlases())
+ {
+ reportAlways("Error: image '%s' not present in atlas",
+ source.c_str());
+ }
+#endif
}
else
{