Fixed GLDEFS attenuate 1 and subtractive 1 logic

This commit is contained in:
ZZYZX 2017-01-20 00:59:04 +02:00
parent 49f55120ad
commit a705e47fb9

View file

@ -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;