- Fixed a few corner cases where forcing alpha wouldn't work.

- On the other hand, soultrans, fuzzy and stencil (as is, not including the mixing styles like stenciladd) are no longer accounted for by FORCEALPHA.
This commit is contained in:
Major Cooke 2016-10-03 13:14:48 -05:00
commit d597af1494
3 changed files with 43 additions and 24 deletions

View file

@ -2373,7 +2373,11 @@ ESPSResult R_SetPatchStyle (FRenderStyle style, fixed_t alpha, int translation,
color = 0;
}
if (style.Flags & STYLEF_TransSoulsAlpha)
if (style.Flags & STYLEF_ForceAlpha)
{
alpha = clamp<fixed_t>(alpha, 0, OPAQUE);
}
else if (style.Flags & STYLEF_TransSoulsAlpha)
{
alpha = fixed_t(transsouls * OPAQUE);
}