1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2025-10-04 13:27:14 +00:00

Add Lua func entity_getSkeletalName() and do not abort when a skin file is not found. Also warn on missing skeletal file.

This commit is contained in:
fgenesis 2013-02-27 01:54:38 +01:00
commit 23e0707c5b
2 changed files with 12 additions and 1 deletions

View file

@ -1172,7 +1172,7 @@ void SkeletalSprite::loadSkin(const std::string &fn)
file = core->adjustFilenameCase(file);
if (!exists(file,1))
if (!exists(file))
{
errorLog("Could not load skin[" + file + "]");
return;
@ -1304,6 +1304,7 @@ void SkeletalSprite::loadSkeletal(const std::string &fn)
if (!exists(file))
{
filenameLoaded = "";
errorLog("Could not load skeletal[" + file + "]");
return;
}