447: Allow relative calc from backside colormap (ML_TFERLINE)

This commit is contained in:
mazmazz 2018-09-12 07:55:47 -04:00
parent 6f0b28c48f
commit 4d26cf6330
1 changed files with 2 additions and 1 deletions

View File

@ -3260,7 +3260,8 @@ static void P_ProcessLineSpecial(line_t *line, mobj_t *mo, sector_t *callsec)
if (line->flags & ML_EFFECT3) // relative calc
{
extracolormap_t *exc = R_AddColormaps(
sectors[secnum].extra_colormap, line->frontsector->extra_colormap,
(line->flags & ML_TFERLINE) ? line->backsector->extra_colormap : sectors[secnum].extra_colormap, // use back colormap instead of target sector
line->frontsector->extra_colormap,
line->flags & ML_EFFECT1, // subtract R
line->flags & ML_NOCLIMB, // subtract G
line->flags & ML_EFFECT2, // subtract B