From a705e47fb94b875c11e0701bf95f5be5b0450ad2 Mon Sep 17 00:00:00 2001 From: ZZYZX Date: Fri, 20 Jan 2017 00:59:04 +0200 Subject: [PATCH] Fixed GLDEFS attenuate 1 and subtractive 1 logic --- Source/Core/ZDoom/GldefsParser.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/Core/ZDoom/GldefsParser.cs b/Source/Core/ZDoom/GldefsParser.cs index e461db0a..c9a98d9d 100755 --- a/Source/Core/ZDoom/GldefsParser.cs +++ b/Source/Core/ZDoom/GldefsParser.cs @@ -303,8 +303,8 @@ namespace CodeImp.DoomBuilder.ZDoom return false; } - if (i == 1) light.Style = DynamicLightRenderStyle.NEGATIVE; - } + light.Style = (i == 1) ? DynamicLightRenderStyle.NEGATIVE : DynamicLightRenderStyle.NORMAL; + } break; case "attenuate": @@ -320,7 +320,7 @@ namespace CodeImp.DoomBuilder.ZDoom return false; } - if (i == 1) light.Style = DynamicLightRenderStyle.ATTENUATED; + light.Style = (i == 1) ? DynamicLightRenderStyle.ATTENUATED : DynamicLightRenderStyle.NORMAL; } break;