1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2025-10-08 07:11:16 +00:00

Allow custom capes in mods

This commit is contained in:
fgenesis 2015-03-09 04:55:03 +01:00
commit 9973afbac6
5 changed files with 18 additions and 25 deletions

View file

@ -4110,33 +4110,17 @@ void Avatar::refreshNormalForm()
if (c.empty())
c = "Naija";
refreshModel("Naija", c);
if (true)
if(hair)
{
if (hair)
hair->alphaMod = 1.0;
hair->alphaMod = 1.0;
if (!c.empty() && c!="Naija")
{
if (exists(core->getBaseTextureDirectory() + "naija/cape-"+c+".png"))
{
if (hair)
hair->setTexture("naija/cape-"+c);
}
else
{
if (hair)
hair->alphaMod = 0;
}
hair->setTexture("naija/cape-"+c);
if (Texture::textureError != TEXERR_OK)
hair->alphaMod = 0;
}
else
{
if (hair)
hair->setTexture("naija/cape");
}
}
else
{
if (hair)
hair->alphaMod = 0.0;
hair->setTexture("naija/cape");
}
}