Warn about missing atlas entries.

This commit is contained in:
Steve 2018-03-13 08:24:41 +00:00
parent 3b4b690ebf
commit de2295efe9
1 changed files with 5 additions and 0 deletions

View File

@ -46,6 +46,11 @@ Atlas *getImageFromAtlas(char *filename)
}
}
if (!strstr(filename, "/tiles/"))
{
SDL_LogMessage(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_WARN, "No such atlas image '%s'", filename);
}
return NULL;
}