From c5b2c9557299eba078359af57531c1d31a957f1e Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 1 Dec 2013 15:11:41 +0100 Subject: [PATCH] - fixed placement and handling of 'allowdecals' for animated doors. --- src/textures/animations.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/textures/animations.cpp b/src/textures/animations.cpp index 09518cd5eb..13413ae70c 100644 --- a/src/textures/animations.cpp +++ b/src/textures/animations.cpp @@ -778,11 +778,10 @@ void FTextureManager::ParseAnimatedDoor(FScanner &sc) } } frames.Push(v); - if (!sc.CheckString("allowdecals")) - { - Texture(v)->bNoDecals = true; - } - + } + else if (!sc.Compare("allowdecals")) + { + if (anim.BaseTexture.Exists()) Texture(anim.BaseTexture)->bNoDecals = true; } else {