From 86d7a326be234c645b10221248ecdbdc2ed1f0e7 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 1 Dec 2013 21:11:33 +0100 Subject: [PATCH] - allowdecals logic was nonfunctional. --- src/textures/animations.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/textures/animations.cpp b/src/textures/animations.cpp index e35550d51a..433baa8744 100644 --- a/src/textures/animations.cpp +++ b/src/textures/animations.cpp @@ -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 {