- allowdecals logic was nonfunctional.

This commit is contained in:
Christoph Oelckers 2013-12-01 21:11:33 +01:00
parent 25f60779fd
commit 86d7a326be

View file

@ -749,8 +749,11 @@ void FTextureManager::ParseAnimatedDoor(FScanner &sc)
{
error = true;
}
while (sc.GetString ())
else
{
Texture(anim.BaseTexture)->bNoDecals = true;
}
while (sc.GetString())
{
if (sc.Compare ("opensound"))
{
@ -781,7 +784,7 @@ void FTextureManager::ParseAnimatedDoor(FScanner &sc)
}
else if (sc.Compare("allowdecals"))
{
if (anim.BaseTexture.Exists()) Texture(anim.BaseTexture)->bNoDecals = true;
if (anim.BaseTexture.Exists()) Texture(anim.BaseTexture)->bNoDecals = false;
}
else
{