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